Home
last modified time | relevance | path

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

/packages/modules/Bluetooth/system/osi/include_internal/osi/
Dsemaphore.h27 struct semaphore_t;
28 typedef struct semaphore_t semaphore_t; typedef
33 semaphore_t* semaphore_new(unsigned int value);
37 void semaphore_free(semaphore_t* semaphore);
41 void semaphore_wait(semaphore_t* semaphore);
46 bool semaphore_try_wait(semaphore_t* semaphore);
49 void semaphore_post(semaphore_t* semaphore);
61 int semaphore_get_fd(const semaphore_t* semaphore);
/packages/modules/Bluetooth/system/osi/src/internal/
Dsemaphore.cc40 struct semaphore_t { struct
44 semaphore_t* semaphore_new(unsigned int value) { in semaphore_new() argument
45 semaphore_t* ret = static_cast<semaphore_t*>(osi_malloc(sizeof(semaphore_t))); in semaphore_new()
55 void semaphore_free(semaphore_t* semaphore) { in semaphore_free()
62 void semaphore_wait(semaphore_t* semaphore) { in semaphore_wait()
72 bool semaphore_try_wait(semaphore_t* semaphore) { in semaphore_try_wait()
97 void semaphore_post(semaphore_t* semaphore) { in semaphore_post()
106 int semaphore_get_fd(const semaphore_t* semaphore) { in semaphore_get_fd()
/packages/modules/Bluetooth/system/osi/test/internal/
Dsemaphore_test.cc14 semaphore_t* semaphore;
41 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
47 semaphore_t* semaphore = semaphore_new(3); in TEST_F()
59 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
71 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
79 semaphore_t* semaphore = semaphore_new(0); in TEST_F()
/packages/modules/Bluetooth/system/test/fake/
Dfake_thread.h35 class semaphore_t {
67 semaphore_t start_sem;
80 semaphore_t thread_finish_semaphore;
84 semaphore_t work_queue_semaphore;
/packages/modules/Bluetooth/system/osi/src/
Dfixed_queue.cc36 semaphore_t* enqueue_sem;
37 semaphore_t* dequeue_sem;
Dfuture.cc34 semaphore_t* semaphore; // NULL semaphore means immediate future
Dthread.cc55 semaphore_t* start_sem;
Dalarm.cc122 static semaphore_t* alarm_expired;
/packages/modules/Bluetooth/system/osi/test/
Dalarm_test.cc34 static semaphore_t* semaphore;