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/osi/src/
Dsemaphore.c37 struct semaphore_t { struct
41 semaphore_t *semaphore_new(unsigned int value) { in semaphore_new() argument
42 semaphore_t *ret = osi_malloc(sizeof(semaphore_t)); in semaphore_new()
54 void semaphore_free(semaphore_t *semaphore) { in semaphore_free()
63 void semaphore_wait(semaphore_t *semaphore) { in semaphore_wait()
72 bool semaphore_try_wait(semaphore_t *semaphore) { in semaphore_try_wait()
95 void semaphore_post(semaphore_t *semaphore) { in semaphore_post()
103 int semaphore_get_fd(const semaphore_t *semaphore) { in semaphore_get_fd()
Dfixed_queue.c32 semaphore_t *enqueue_sem;
33 semaphore_t *dequeue_sem;
Dfuture.c31 semaphore_t *semaphore; // NULL semaphore means immediate future
Dthread.c48 semaphore_t *start_sem;
Dalarm.c74 static semaphore_t *alarm_expired;
/system/bt/btif/src/
Dstack_manager.c66 semaphore_t *semaphore = semaphore_new(0); in init_stack()
92 semaphore_t *semaphore = (semaphore_t *)context; in event_init_stack()
/system/bt/hci/test/
Dhci_hal_mct_test.cpp58 static semaphore_t *done;
59 static semaphore_t *reentry_semaphore;
Dhci_hal_h4_test.cpp57 static semaphore_t *done;
58 static semaphore_t *reentry_semaphore;
Dlow_power_manager_test.cpp42 static semaphore_t *done;
Dhci_layer_test.cpp69 static semaphore_t *done;
/system/bt/osi/test/
Deager_reader_test.cpp69 static semaphore_t *done;
Dalarm_test.cpp29 static semaphore_t *semaphore;