Home
last modified time | relevance | path

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

123456789

/third_party/musl/porting/liteos_m/user/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 …]
Dusr_lib_ops.h86 int (*sem_init)(sem_t *sem, int shared, unsigned int value);
87 int (*sem_destroy)(sem_t *sem);
88 int (*sem_wait)(sem_t *sem);
89 int (*sem_post)(sem_t *sem);
90 int (*sem_timedwait)(sem_t *sem, const struct timespec *timeout);
91 int (*sem_getvalue)(sem_t *sem, int *currVal);
/third_party/musl/porting/liteos_m/kernel/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 …]
/third_party/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 …]
/third_party/musl/porting/uniproton/kernel/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 …]
/third_party/musl/porting/liteos_a_newlib/kernel/include/
Dsemaphore.h14 #define SEM_FAILED ((sem_t *)0)
18 } sem_t; typedef
20 int sem_close(sem_t *);
21 int sem_destroy(sem_t *);
22 int sem_getvalue(sem_t *__restrict, int *__restrict);
23 int sem_init(sem_t *, int, unsigned);
24 sem_t *sem_open(const char *, int, ...);
25 int sem_post(sem_t *);
26 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
27 int sem_trywait(sem_t *);
[all …]
/third_party/musl/porting/liteos_m_iccarm/kernel/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 …]
/third_party/musl/porting/liteos_a/kernel/include/
Dsemaphore.h17 #define SEM_FAILED ((sem_t *)0)
21 } sem_t; typedef
23 int sem_close(sem_t *);
24 int sem_destroy(sem_t *);
25 int sem_getvalue(sem_t *__restrict, int *__restrict);
26 int sem_init(sem_t *, int, unsigned);
27 sem_t *sem_open(const char *, int, ...);
28 int sem_post(sem_t *);
29 int sem_timedwait(sem_t *__restrict, const struct timespec *__restrict);
30 int sem_trywait(sem_t *);
[all …]
/third_party/vk-gl-cts/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()
/third_party/musl/libc-test/src/api/
Dsemaphore.c4 {sem_t *x = SEM_FAILED;} in f()
5 {int(*p)(sem_t*) = sem_close;} in f()
6 {int(*p)(sem_t*) = sem_destroy;} in f()
7 {int(*p)(sem_t*restrict,int*restrict) = sem_getvalue;} in f()
8 {int(*p)(sem_t*,int,unsigned) = sem_init;} in f()
9 {sem_t*(*p)(const char*,int,...) = sem_open;} in f()
10 {int(*p)(sem_t*) = sem_post;} in f()
11 {int(*p)(sem_t*) = sem_trywait;} in f()
13 {int(*p)(sem_t*) = sem_wait;} in f()
18 {int(*p)(sem_t*restrict,const struct timespec*restrict) = sem_timedwait;} in g()
/third_party/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()
127 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
138 munmap(map, sizeof(sem_t)); in sem_open()
152 munmap(map, sizeof(sem_t)); in sem_open()
172 int sem_close(sem_t *sem)
/third_party/musl/porting/liteos_a/user/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()
124 (map = mmap(0, sizeof(sem_t), PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0)) == MAP_FAILED) { in sem_open()
132 munmap(map, sizeof(sem_t)); in sem_open()
146 munmap(map, sizeof(sem_t)); in sem_open()
166 int sem_close(sem_t *sem) in sem_close()
/third_party/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()
/third_party/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;
/third_party/python/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()
/third_party/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;
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
Dthread_sem_test.cpp12 sem_t sem_;
20 sem_t& sem = *reinterpret_cast<sem_t*>(arg); in ThreadFn()
/third_party/NuttX/drivers/pipes/
Dpipe_common.h112 sem_t d_bfsem; /* Used to serialize access to d_buffer and indices */
113 sem_t d_rdsem; /* Empty buffer - Reader waits for data write */
114 sem_t d_wrsem; /* Full buffer - Writer waits for data read */
/third_party/musl/porting/liteos_m/user/hook/
Dlos_usr_libc.c271 int sem_init(sem_t *sem, int shared, unsigned int value) in sem_init()
276 int sem_destroy(sem_t *sem) in sem_destroy()
281 int sem_wait(sem_t *sem) in sem_wait()
286 int sem_post(sem_t *sem) in sem_post()
291 int sem_timedwait(sem_t *sem, const struct timespec *timeout) in sem_timedwait()
296 int sem_getvalue(sem_t *sem, int *currVal) in sem_getvalue()
/third_party/musl/libc-test/src/functional/
Dsem_init.c15 sem_t *s = arg; in start()
26 sem_t s[2]; in many_waiters()
57 sem_t s; in single_thread()
/third_party/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()
/third_party/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;
/third_party/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;

123456789