/external/musl/include/ |
D | semaphore.h | 15 #define SEM_FAILED ((sem_t *)0) 19 } sem_t; typedef 21 int sem_close(sem_t *); 22 int sem_destroy(sem_t *); 23 int sem_getvalue(sem_t *__restrict, int *__restrict); 24 int sem_init(sem_t *, int, unsigned); 25 sem_t *sem_open(const char *, int, ...); 26 int sem_post(sem_t *); 27 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict); 28 int sem_trywait(sem_t *); [all …]
|
/external/deqp/framework/delibs/dethread/unix/ |
D | deSemaphoreUnix.c | 32 DE_STATIC_ASSERT(sizeof(deSemaphore) >= sizeof(sem_t*)); 36 sem_t* sem = (sem_t*)deMalloc(sizeof(sem_t)); in deSemaphore_create() 55 sem_t* sem = (sem_t*)semaphore; in deSemaphore_destroy() 63 sem_t* sem = (sem_t*)semaphore; in deSemaphore_increment() 71 sem_t* sem = (sem_t*)semaphore; in deSemaphore_decrement() 79 sem_t* sem = (sem_t*)semaphore; in deSemaphore_tryDecrement()
|
/external/python/cffi/testing/embedding/ |
D | thread-test.h | 14 } sem_t; typedef 16 static int sem_init(sem_t *sem, int pshared, unsigned int value) in sem_init() 24 static int sem_post(sem_t *sem) in sem_post() 33 static int sem_wait(sem_t *sem) in sem_wait() 56 typedef HANDLE sem_t; typedef 59 static int sem_init(sem_t *sem, int pshared, unsigned int value) in sem_init() 67 static int sem_post(sem_t *sem) in sem_post() 72 static int sem_wait(sem_t *sem) in sem_wait()
|
/external/musl/src/thread/ |
D | sem_open.c | 24 sem_t *sem; 32 sem_t *sem_open(const char *name, int flags, ...) in sem_open() 38 sem_t newsem; in sem_open() 70 semtab[slot].sem = (sem_t *)-1; in sem_open() 91 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open() 125 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open() 134 munmap(map, sizeof(sem_t)); in sem_open() 148 munmap(map, sizeof(sem_t)); in sem_open() 168 int sem_close(sem_t *sem) in sem_close()
|
/external/autotest/utils/named_semaphore/ |
D | namedsem.c | 8 *((sem_t **)address) = PyLong_AsVoidPtr(object); in parse_sem_t() 19 sem_t *result; in namedsem_sem_open() 30 sem_t *sem; in namedsem_sem_close() 54 sem_t *sem; in namedsem_sem_wait() 66 sem_t *sem; in namedsem_sem_post() 79 sem_t *sem; in namedsem_sem_getvalue()
|
/external/libvpx/vp8/common/ |
D | threading.h | 91 #define sem_t HANDLE macro 108 } sem_t; 110 static inline int sem_init(sem_t *sem, int pshared, unsigned int value) { 121 static inline int sem_wait(sem_t *sem) { 142 static inline int sem_post(sem_t *sem) { 155 static inline int sem_destroy(sem_t *sem) { 168 #define sem_t semaphore_t
|
/external/python/cpython2/Python/ |
D | thread_pthread.h | 259 sem_t *lock; in PyThread_allocate_lock() 266 lock = (sem_t *)malloc(sizeof(sem_t)); in PyThread_allocate_lock() 285 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() 316 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock() 344 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/ |
D | 7-1.c | 83 sem_t *sems; in main() 84 sem_t sem_last; in main() 98 sems = (sem_t *) calloc(max, sizeof(sem_t)); in main()
|
/external/libmpeg2/common/ |
D | ithread.c | 134 return(sizeof(sem_t)); in ithread_get_sem_struct_size() 139 return sem_init((sem_t *)sem,pshared,value); in ithread_sem_init() 144 return sem_post((sem_t *)sem); in ithread_sem_post() 149 return sem_wait((sem_t *)sem); in ithread_sem_wait() 154 return sem_destroy((sem_t *)sem); in ithread_sem_destroy()
|
/external/libhevc/common/ |
D | ithread.c | 126 return (sizeof(sem_t)); in ithread_get_sem_struct_size() 131 return sem_init((sem_t *)sem, pshared, value); in ithread_sem_init() 136 return sem_post((sem_t *)sem); in ithread_sem_post() 141 return sem_wait((sem_t *)sem); in ithread_sem_wait() 146 return sem_destroy((sem_t *)sem); in ithread_sem_destroy()
|
/external/libavc/common/ |
D | ithread.c | 136 return(sizeof(sem_t)); in ithread_get_sem_struct_size() 142 return sem_init((sem_t *)sem,pshared,value); in ithread_sem_init() 147 return sem_post((sem_t *)sem); in ithread_sem_post() 153 return sem_wait((sem_t *)sem); in ithread_sem_wait() 159 return sem_destroy((sem_t *)sem); in ithread_sem_destroy()
|
/external/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
D | sem_sleepingbarber.c | 28 static sem_t customer; 29 static sem_t barber; 30 static sem_t lock; 31 static sem_t print;
|
D | sem_conpro.c | 31 sem_t occupied; 32 sem_t empty; 33 sem_t lock;
|
D | sem_lock.c | 29 sem_t *sem_lock; in main() 46 if ((sem_lock = malloc(sizeof(sem_t))) == NULL) { in main()
|
/external/ltp/testcases/kernel/sched/eas/ |
D | sched_prio_3_fifo.c | 44 static sem_t sem_high_b; 45 static sem_t sem_high_a; 46 static sem_t sem_med_b; 47 static sem_t sem_med_a; 48 static sem_t sem_low_b; 49 static sem_t sem_low_a;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_lock/ |
D | 3-1.c | 86 static sem_t semsig1; 87 static sem_t semsig2; 90 static sem_t semsync; 91 static sem_t semsync2; 97 sem_t *sem;
|
/external/python/cpython3/Python/ |
D | thread_pthread.h | 385 sem_t *lock; in PyThread_allocate_lock() 392 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock() 411 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() 443 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock_timed() 558 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock()
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
D | 2-2.c | 86 static sem_t *common() in common() 89 sem_t *sem; in common() 132 sem_t *sem; in main()
|
/external/ltp/testcases/kernel/syscalls/move_pages/ |
D | move_pages_support.h | 49 sem_t *alloc_sem(int num); 50 void free_sem(sem_t *sem, int num);
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_atfork/ |
D | 3-3.c | 83 static sem_t semsig1; 84 static sem_t semsig2; 93 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/ |
D | 2-1.c | 81 static sem_t semsig1; 82 static sem_t semsig2; 91 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
D | 8-1.c | 81 static sem_t semsig1; 82 static sem_t semsig2; 91 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/ |
D | 6-1.c | 80 static sem_t semsig1; 81 static sem_t semsig2; 90 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/ |
D | 5-1.c | 82 static sem_t semsig1; 83 static sem_t semsig2; 92 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/ |
D | 6-3.c | 53 static sem_t semsig1; 54 static sem_t semsig2; 64 sem_t *sem;
|