/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()
|
D | deNamedSemaphoreUnix.c | 36 sem_t* semaphore; 88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_increment() 96 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_decrement() 104 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_tryDecrement()
|
/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/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/libvpx/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/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/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/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/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/python/cpython3/Python/ |
D | thread_pthread.h | 282 sem_t *lock; in PyThread_allocate_lock() 289 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock() 308 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() 340 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock_timed() 435 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock()
|
/external/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
D | sem_sleepingbarber.c | 28 sem_t customer; 29 sem_t barber; 30 sem_t lock; 31 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 sem_t semsig1; 87 sem_t semsig2; 90 sem_t semsync; 91 sem_t semsync2; 97 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/ |
D | 2-2.c | 86 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 sem_t semsig1; 84 sem_t semsig2; 93 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/ |
D | 2-1.c | 81 sem_t semsig1; 82 sem_t semsig2; 91 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/ |
D | 8-1.c | 81 sem_t semsig1; 82 sem_t semsig2; 91 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/ |
D | 6-1.c | 80 sem_t semsig1; 81 sem_t semsig2; 90 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/ |
D | 5-1.c | 82 sem_t semsig1; 83 sem_t semsig2; 92 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/ |
D | 18-1.c | 81 sem_t semsig1; 82 sem_t semsig2; 91 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; 63 sem_t *sem;
|
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/ |
D | 4-2.c | 52 sem_t semsig1; 53 sem_t semsig2; 62 sem_t *sem;
|