Home
last modified time | relevance | path

Searched refs:sem_t (Results 1 – 25 of 166) sorted by relevance

1234567

/external/deqp/framework/delibs/dethread/unix/
DdeSemaphoreUnix.c32 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()
DdeNamedSemaphoreUnix.c36 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/
Dnamedsem.c8 *((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/
Dthread_pthread.h259 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/
Dthreading.h91 #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/
Dithread.c126 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/
Dithread.c134 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/
D7-1.c83 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/
Dithread.c136 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/
Dthread_pthread.h282 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/
Dsem_sleepingbarber.c28 sem_t customer;
29 sem_t barber;
30 sem_t lock;
31 sem_t print;
Dsem_conpro.c31 sem_t occupied;
32 sem_t empty;
33 sem_t lock;
Dsem_lock.c29 sem_t *sem_lock; in main()
46 if ((sem_lock = malloc(sizeof(sem_t))) == NULL) { in main()
/external/ltp/testcases/kernel/sched/eas/
Dsched_prio_3_fifo.c44 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/
D3-1.c86 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/
D2-2.c86 sem_t *common() in common()
89 sem_t *sem; in common()
132 sem_t *sem; in main()
/external/ltp/testcases/kernel/syscalls/move_pages/
Dmove_pages_support.h49 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/
D3-3.c83 sem_t semsig1;
84 sem_t semsig2;
93 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/
D2-1.c81 sem_t semsig1;
82 sem_t semsig2;
91 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/
D8-1.c81 sem_t semsig1;
82 sem_t semsig2;
91 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/
D6-1.c80 sem_t semsig1;
81 sem_t semsig2;
90 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/
D5-1.c82 sem_t semsig1;
83 sem_t semsig2;
92 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_sigmask/
D18-1.c81 sem_t semsig1;
82 sem_t semsig2;
91 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_join/
D6-3.c53 static sem_t semsig1;
54 static sem_t semsig2;
63 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_cond_broadcast/
D4-2.c52 sem_t semsig1;
53 sem_t semsig2;
62 sem_t *sem;

1234567