Home
last modified time | relevance | path

Searched defs:sem (Results 1 – 25 of 105) sorted by relevance

12345

/external/deqp/framework/delibs/dethread/unix/
DdeSemaphoreUnix.c36 sem_t* sem = (sem_t*)deMalloc(sizeof(sem_t)); in deSemaphore_create() local
55 sem_t* sem = (sem_t*)semaphore; in deSemaphore_destroy() local
63 sem_t* sem = (sem_t*)semaphore; in deSemaphore_increment() local
71 sem_t* sem = (sem_t*)semaphore; in deSemaphore_decrement() local
79 sem_t* sem = (sem_t*)semaphore; in deSemaphore_tryDecrement() local
DdeNamedSemaphoreUnix.c39 static void NamedSemaphore_getName (const NamedSemaphore* sem, char* buf, int bufSize) in NamedSemaphore_getName()
48 NamedSemaphore* sem = (NamedSemaphore*)deCalloc(sizeof(NamedSemaphore)); in deSemaphore_create() local
72 NamedSemaphore* sem = (NamedSemaphore*)semaphore; in deSemaphore_destroy() local
88 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_increment() local
96 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_decrement() local
104 sem_t* sem = ((NamedSemaphore*)semaphore)->semaphore; in deSemaphore_tryDecrement() local
/external/syslinux/core/thread/
Dsemaphore.c4 void sem_init(struct semaphore *sem, int count) in sem_init()
12 mstime_t __sem_down_slow(struct semaphore *sem, mstime_t timeout) in __sem_down_slow()
58 void __sem_up_slow(struct semaphore *sem) in __sem_up_slow()
Dkill_thread.c26 struct semaphore *sem = block->semaphore; in kill_thread() local
/external/syslinux/core/lwip/src/arch/
Dsys_arch.c11 err_t sys_sem_new(sys_sem_t *sem, u8_t count) in sys_sem_new()
23 void sys_sem_free(sys_sem_t *sem) in sys_sem_free()
32 void sys_sem_set_invalid(sys_sem_t *sem) in sys_sem_set_invalid()
40 int sys_sem_valid(sys_sem_t *sem) in sys_sem_valid()
47 u32_t sys_arch_sem_wait(sys_sem_t *sem, u32_t timeout) in sys_arch_sem_wait()
/external/libdrm/amdgpu/
Damdgpu_cs.c127 amdgpu_semaphore_handle sem; in amdgpu_cs_ctx_free() local
182 amdgpu_semaphore_handle sem, tmp; in amdgpu_cs_submit_one() local
446 int amdgpu_cs_create_semaphore(amdgpu_semaphore_handle *sem) in amdgpu_cs_create_semaphore()
467 amdgpu_semaphore_handle sem) in amdgpu_cs_signal_semaphore()
495 amdgpu_semaphore_handle sem) in amdgpu_cs_wait_semaphore()
515 static int amdgpu_cs_reset_sem(amdgpu_semaphore_handle sem) in amdgpu_cs_reset_sem()
531 static int amdgpu_cs_unreference_sem(amdgpu_semaphore_handle sem) in amdgpu_cs_unreference_sem()
541 int amdgpu_cs_destroy_semaphore(amdgpu_semaphore_handle sem) in amdgpu_cs_destroy_semaphore()
/external/autotest/utils/named_semaphore/
Dnamedsem.c30 sem_t *sem; in namedsem_sem_close() local
54 sem_t *sem; in namedsem_sem_wait() local
66 sem_t *sem; in namedsem_sem_post() local
79 sem_t *sem; in namedsem_sem_getvalue() local
/external/libvpx/libvpx/vp8/common/
Dthreading.h93 #define sem_init(sem, sem_attr1, sem_init_value) \ argument
95 #define sem_wait(sem) \ argument
97 #define sem_post(sem) ReleaseSemaphore(*sem, 1, NULL) argument
98 #define sem_destroy(sem) \ argument
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_unlink/
D2-2.c91 sem_t *sem; in common() local
134 sem_t *sem; in main() local
/external/libhevc/common/
Dithread.c129 WORD32 ithread_sem_init(void *sem, WORD32 pshared, UWORD32 value) in ithread_sem_init()
134 WORD32 ithread_sem_post(void *sem) in ithread_sem_post()
139 WORD32 ithread_sem_wait(void *sem) in ithread_sem_wait()
144 WORD32 ithread_sem_destroy(void *sem) in ithread_sem_destroy()
/external/libmpeg2/common/
Dithread.c137 WORD32 ithread_sem_init(void *sem,WORD32 pshared,UWORD32 value) in ithread_sem_init()
142 WORD32 ithread_sem_post(void *sem) in ithread_sem_post()
147 WORD32 ithread_sem_wait(void *sem) in ithread_sem_wait()
152 WORD32 ithread_sem_destroy(void *sem) in ithread_sem_destroy()
/external/libavc/common/
Dithread.c140 WORD32 ithread_sem_init(void *sem,WORD32 pshared,UWORD32 value) in ithread_sem_init()
145 WORD32 ithread_sem_post(void *sem) in ithread_sem_post()
151 WORD32 ithread_sem_wait(void *sem) in ithread_sem_wait()
157 WORD32 ithread_sem_destroy(void *sem) in ithread_sem_destroy()
/external/valgrind/helgrind/tests/
Dtc24_nonzero_sem.c21 sem_t* sem = (sem_t*)semV; in child_fn() local
29 sem_t* sem; in main() local
/external/valgrind/memcheck/tests/
Derr_disable4.c30 sem_t sem; variable
32 sem_t *sem; variable
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_post/
D8-1.c81 sem_t *sem, *sem_1; in child_fn() local
119 sem_t *sem, *sem_1; in main() local
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages03.c85 void child(void **pages, sem_t * sem) in child()
131 sem_t *sem; in main() local
Dmove_pages11.c86 void child(void **pages, sem_t * sem) in child()
132 sem_t *sem; in main() local
Dmove_pages05.c86 void child(void **pages, sem_t * sem) in child()
132 sem_t *sem; in main() local
/external/compiler-rt/test/msan/
Dsem_getvalue.cc8 sem_t sem; in main() local
/external/python/cpython2/Modules/_multiprocessing/
Dsemaphore.c36 #define SEM_CLOSE(sem) (CloseHandle(sem) ? 0 : -1) argument
37 #define SEM_GETVALUE(sem, pval) _GetSemaphoreValue(sem, pval) argument
196 #define SEM_CLOSE(sem) sem_close(sem) argument
197 #define SEM_GETVALUE(sem, pval) sem_getvalue(sem, pval) argument
212 # define sem_timedwait(sem,deadline) sem_timedwait_save(sem,deadline,_save) argument
215 sem_timedwait_save(sem_t *sem, struct timespec *deadline, PyThreadState *_save) in sem_timedwait_save()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cancel/
D4-1.c23 int sem; /* Manual semaphore */ variable
D2-1.c25 int sem; /* Manual semaphore */ variable
/external/python/cpython3/Modules/_multiprocessing/
Dsemaphore.c38 #define SEM_CLOSE(sem) (CloseHandle(sem) ? 0 : -1) argument
39 #define SEM_GETVALUE(sem, pval) _GetSemaphoreValue(sem, pval) argument
189 #define SEM_CLOSE(sem) sem_close(sem) argument
190 #define SEM_GETVALUE(sem, pval) sem_getvalue(sem, pval) argument
205 # define sem_timedwait(sem,deadline) sem_timedwait_save(sem,deadline,_save) argument
208 sem_timedwait_save(sem_t *sem, struct timespec *deadline, PyThreadState *_save) in sem_timedwait_save()
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_create/
D3-1.c33 static volatile int sem; variable
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_close/
D3-2.c94 sem_t *sem; in main() local

12345