Searched refs:psem (Results 1 - 3 of 3) sorted by relevance
/third_party/ffmpeg/compat/dispatch_semaphore/ |
H A D | semaphore.h | 26 #define sem_post(psem) dispatch_semaphore_signal(*psem) 27 #define sem_wait(psem) dispatch_semaphore_wait(*psem, DISPATCH_TIME_FOREVER) 28 #define sem_timedwait(psem, val) dispatch_semaphore_wait(*psem, dispatch_walltime(val, 0)) 29 #define sem_destroy(psem) dispatch_release(*psem) 31 static inline int compat_sem_init(dispatch_semaphore_t *psem, in compat_sem_init() argument 34 int ret = !!(*psem in compat_sem_init() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/ |
H A D | 3-1.c | 28 static sem_t psem, csem; variable 36 sem_wait(&psem); in producer() 49 sem_post(&psem); in consumer() 64 if (sem_init(&psem, 0, 1) < 0) { in main() 80 sem_destroy(&psem); in main()
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_destroy/ |
H A D | 3-1.c | 28 static sem_t psem, csem; variable 45 if (sem_init(&psem, 0, 1) < 0) { in main() 72 if (sem_destroy(&psem) == 0 && sem_destroy(&csem) == 0) { in main() 86 sem_wait(&psem); in producer() 99 sem_post(&psem); in consumer()
|
Completed in 2 milliseconds