Home
last modified time | relevance | path

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

12345678910

/external/musl/include/
Dsemaphore.h15 #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/
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()
/external/python/cffi/testing/embedding/
Dthread-test.h14 } 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/
Dsem_open.c24 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/
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/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/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/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/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/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/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/ltp/testcases/open_posix_testsuite/functional/semaphores/
Dsem_sleepingbarber.c28 static sem_t customer;
29 static sem_t barber;
30 static sem_t lock;
31 static 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 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/
Dthread_pthread.h385 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/
D2-2.c86 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/
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 static sem_t semsig1;
84 static sem_t semsig2;
93 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_equal/
D2-1.c81 static sem_t semsig1;
82 static sem_t semsig2;
91 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_kill/
D8-1.c81 static sem_t semsig1;
82 static sem_t semsig2;
91 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_once/
D6-1.c80 static sem_t semsig1;
81 static sem_t semsig2;
90 sem_t *sem;
/external/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_setschedparam/
D5-1.c82 static sem_t semsig1;
83 static sem_t semsig2;
92 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;
64 sem_t *sem;

12345678910