/third_party/musl/porting/uniproton/kernel/include/ |
H A D | semaphore.h | 15 #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_m/user/include/ |
H A D | semaphore.h | 15 #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...] |
H A D | usr_lib_ops.h | 86 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_a/kernel/include/ |
H A D | semaphore.h | 17 #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/musl/porting/liteos_a_newlib/kernel/include/ |
H A D | semaphore.h | 14 #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/ |
H A D | semaphore.h | 15 #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_m/kernel/include/ |
H A D | semaphore.h | 15 #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/ |
H A D | semaphore.h | 15 #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/libc-test/src/api/ |
H A D | semaphore.c | 4 {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*restric in g() [all...] |
/third_party/vk-gl-cts/framework/delibs/dethread/unix/ |
H A D | deSemaphoreUnix.c | 32 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*)semaphor in deSemaphore_decrement() [all...] |
H A D | deNamedSemaphoreUnix.c | 36 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()
|
/test/xts/acts/kernel_lite/ipc_posix/semaphore/ |
H A D | SemTest.cpp | 39 sem_t sem; in HWTEST_F() 56 sem_t sem; in HWTEST_F() 73 sem_t sem; in HWTEST_F() 90 sem_t sem; in HWTEST_F() 116 sem_t sem; in HWTEST_F() 142 sem_t sem; in HWTEST_F() 167 sem_t sem; in HWTEST_F() 174 sem_t *sem = (sem_t*)arg; in ThreadChat() 191 sem_t se in HWTEST_F() [all...] |
H A D | SemAbnormalTest.cpp | 38 sem_t sem; in HWTEST_F() 55 sem_t sem; in HWTEST_F() 74 sem_t sem; in HWTEST_F() 87 sem_t sem; in HWTEST_F() 112 sem_t sem; in HWTEST_F() 139 sem_t sem; in HWTEST_F() 165 sem_t sem; in HWTEST_F()
|
/third_party/musl/porting/liteos_a/user/src/thread/ |
H A D | sem_open.c | 24 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/musl/src/thread/ |
H A D | sem_open.c | 24 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)
|
/test/xts/acts/kernel_lite/sched_posix/src/ |
H A D | PthreadSchedApiTest.cpp | 260 sem_t *sem = (sem_t*)arg;
in ThreadFunc1() 279 sem_t sem;
in HWTEST_F() 316 sem_t sem;
in HWTEST_P() 367 sem_t *sem = (sem_t*)arg;
in ThrdFuncForSetSchedParamTest() 403 sem_t sem;
in HWTEST_F() 432 sem_t *sem = (sem_t*)arg;
in ThrdFuncForSetSchedPrioTest() 455 sem_t se in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/interface/ |
H A D | nstackx_util.h | 64 NSTACKX_EXPORT void SemGetValue(sem_t *sem, int *sval); 65 NSTACKX_EXPORT void SemPost(sem_t *sem); 66 NSTACKX_EXPORT void SemWait(sem_t *sem); 67 NSTACKX_EXPORT void SemDestroy(sem_t *sem); 68 NSTACKX_EXPORT int32_t SemInit(sem_t *sem, int pshared, unsigned int value);
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
H A D | semaphorendk.cpp | 48 sem_t semp = {PARAM_0};
in SemGetvalue() 66 sem_t *semFirst = sem_open(name, O_CREAT, TEST_MODE, ONE);
in SemOpen() 73 sem_t *semSecond = sem_open(name, O_CREAT | O_EXCL, TEST_MODE, ONE);
in SemOpen() 106 sem_t bin_sem;
in SemInit() 114 static sem_t g_sem;
123 sem_t semp = {PARAM_0};
in SemDestroy() 157 sem_t semp = {PARAM_0};
in SemWait() 173 sem_t semp = {PARAM_0};
in SemTrywait() 189 sem_t semp = {PARAM_0};
in SemTimedwait() 201 sem_t *se in SemClose() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/ |
H A D | 7-1.c | 83 sem_t *sems; in main() 84 sem_t sem_last; in main() 98 sems = (sem_t *) calloc(max, sizeof(sem_t)); in main()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/liteos/ |
H A D | sys_util.c | 93 int32_t SemInit(sem_t *sem, int pshared, unsigned int value) in SemInit() 98 void SemGetValue(sem_t *sem, int *sval) in SemGetValue() 105 void SemPost(sem_t *sem) in SemPost() 112 void SemWait(sem_t *sem) in SemWait() 119 void SemDestroy(sem_t *sem) in SemDestroy()
|
/foundation/communication/dsoftbus/components/nstackx/nstackx_util/platform/unix/ |
H A D | sys_util.c | 146 int32_t SemInit(sem_t *sem, int pshared, unsigned int value) in SemInit() 151 void SemGetValue(sem_t *sem, int *sval) in SemGetValue() 158 void SemPost(sem_t *sem) in SemPost() 165 void SemWait(sem_t *sem) in SemWait() 172 void SemDestroy(sem_t *sem) in SemDestroy()
|
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/ |
H A D | thread_sem_test.cpp | 12 sem_t sem_; 20 sem_t& sem = *reinterpret_cast<sem_t*>(arg); in ThreadFn()
|
/foundation/multimodalinput/input/frameworks/proxy/events/test/ |
H A D | input_manager_filter_manual_test.cpp | 233 sem_t &sem; 235 PointerFilter(int32_t exceptX, int32_t exceptY, sem_t &sem, bool &result) in PointerFilter() 291 void WaitPointerEnd(sem_t &sem) in WaitPointerEnd() 305 sem_t sem; in HWTEST_F() 339 sem_t &sem; 341 KeyFilter002(int32_t exceptKeyCode, sem_t &sem, bool &result) in KeyFilter002() 367 void WaitKeyEnd(sem_t &sem) in WaitKeyEnd() 377 void SimulateKeyEvent(bool &resultA, bool &resultB, const int32_t KEYCODE, bool isKeyAEvent, sem_t &sem) in SimulateKeyEvent() 408 sem_t semA; in HWTEST_F() 417 sem_t sem in HWTEST_F() [all...] |
/third_party/ltp/testcases/open_posix_testsuite/functional/semaphores/ |
H A D | sem_sleepingbarber.c | 28 static sem_t customer; 29 static sem_t barber; 30 static sem_t lock; 31 static sem_t print;
|
/third_party/python/Python/ |
H A D | thread_pthread.h | 378 sem_t *lock; in PyThread_allocate_lock() 385 lock = (sem_t *)PyMem_RawMalloc(sizeof(sem_t)); in PyThread_allocate_lock() 404 sem_t *thelock = (sem_t *)lock; in PyThread_free_lock() 436 sem_t *thelock = (sem_t *)lock; in PyThread_acquire_lock_timed() 557 sem_t *thelock = (sem_t *)lock; in PyThread_release_lock()
|