Home
last modified time | relevance | path

Searched refs:semaphore_t (Results 1 – 13 of 13) sorted by relevance

/system/bt/osi/include/
Dsemaphore.h23 struct semaphore_t;
24 typedef struct semaphore_t semaphore_t; typedef
29 semaphore_t* semaphore_new(unsigned int value);
33 void semaphore_free(semaphore_t* semaphore);
37 void semaphore_wait(semaphore_t* semaphore);
42 bool semaphore_try_wait(semaphore_t* semaphore);
45 void semaphore_post(semaphore_t* semaphore);
57 int semaphore_get_fd(const semaphore_t* semaphore);
/system/bt/test/suite/gatt/
Dgatt_test.h83 semaphore_t* register_client_callback_sem_;
84 semaphore_t* scan_result_callback_sem_;
85 semaphore_t* listen_callback_sem_;
87 semaphore_t* register_server_callback_sem_;
88 semaphore_t* service_added_callback_sem_;
89 semaphore_t* characteristic_added_callback_sem_;
90 semaphore_t* descriptor_added_callback_sem_;
91 semaphore_t* service_started_callback_sem_;
92 semaphore_t* service_stopped_callback_sem_;
93 semaphore_t* service_deleted_callback_sem_;
/system/bt/osi/src/
Dsemaphore.cc39 struct semaphore_t { struct
43 semaphore_t* semaphore_new(unsigned int value) { in semaphore_new() argument
44 semaphore_t* ret = static_cast<semaphore_t*>(osi_malloc(sizeof(semaphore_t))); in semaphore_new()
54 void semaphore_free(semaphore_t* semaphore) { in semaphore_free()
61 void semaphore_wait(semaphore_t* semaphore) { in semaphore_wait()
70 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait()
96 void semaphore_post(semaphore_t* semaphore) { in semaphore_post()
104 int semaphore_get_fd(const semaphore_t* semaphore) { in semaphore_get_fd()
Dfuture.cc32 semaphore_t* semaphore; // NULL semaphore means immediate future
Dfixed_queue.cc33 semaphore_t* enqueue_sem;
34 semaphore_t* dequeue_sem;
Dthread.cc53 semaphore_t* start_sem;
Dalarm.cc129 static semaphore_t* alarm_expired;
/system/bt/osi/test/
Dsemaphore_test.cc17 semaphore_t* semaphore;
36 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
42 semaphore_t* semaphore = semaphore_new(3); in TEST_F()
54 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
66 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
74 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
Dalarm_test.cc35 static semaphore_t* semaphore;
/system/bt/test/suite/adapter/
Dbluetooth_test.h70 void ClearSemaphore(semaphore_t* sem);
97 semaphore_t* adapter_properties_callback_sem_;
98 semaphore_t* remote_device_properties_callback_sem_;
99 semaphore_t* adapter_state_changed_callback_sem_;
100 semaphore_t* discovery_state_changed_callback_sem_;
Dbluetooth_test.cc75 void BluetoothTest::ClearSemaphore(semaphore_t* sem) { in ClearSemaphore()
/system/bt/btif/src/
Dstack_manager.cc71 semaphore_t* semaphore = semaphore_new(0); in init_stack()
91 semaphore_t* semaphore = semaphore_new(0); in clean_up_stack()
105 semaphore_t* semaphore = (semaphore_t*)context; in event_init_stack()
223 semaphore_t* semaphore = (semaphore_t*)context; in event_clean_up_stack()
/system/bt/osi/test/fuzzers/alarm/
Dfuzz_alarm.cc32 static semaphore_t* semaphore;