Searched refs:semaphore_t (Results 1 – 14 of 14) sorted by relevance
23 struct semaphore_t;24 typedef struct semaphore_t semaphore_t; typedef29 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);
83 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_;
39 struct semaphore_t { struct43 semaphore_t* semaphore_new(unsigned int value) { in semaphore_new() argument44 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()
32 semaphore_t* semaphore; // NULL semaphore means immediate future
33 semaphore_t* enqueue_sem;34 semaphore_t* dequeue_sem;
53 semaphore_t* start_sem;
127 static semaphore_t* alarm_expired;
17 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()
34 static semaphore_t* semaphore;
70 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_;
75 void BluetoothTest::ClearSemaphore(semaphore_t* sem) { in ClearSemaphore()
112 semaphore_t* semaphore = semaphore_new(0); in init_stack()132 semaphore_t* semaphore = semaphore_new(0); in clean_up_stack()198 semaphore_t* semaphore = (semaphore_t*)context; in event_init_stack()410 semaphore_t* semaphore = (semaphore_t*)context; in event_clean_up_stack()
608 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait()612 int semaphore_get_fd(const semaphore_t* semaphore) { in semaphore_get_fd()616 semaphore_t* semaphore_new(unsigned int value) { in semaphore_new()620 void semaphore_free(semaphore_t* semaphore) { in semaphore_free()623 void semaphore_post(semaphore_t* semaphore) { in semaphore_post()626 void semaphore_wait(semaphore_t* semaphore) { in semaphore_wait()
32 static semaphore_t* semaphore;