/kernel/liteos_a/testsuites/unittest/libc/posix/pthread/ |
H A D | posix_pthread_test.cpp | 61 sem_t g_pthreadSem1; 62 sem_t g_pthreadSem2;
|
/third_party/NuttX/drivers/pipes/ |
H A D | pipe_common.c | 68 static void pipecommon_semtake(sem_t *sem); 78 static void pipecommon_semtake(sem_t *sem) in pipecommon_semtake()
|
/third_party/python/Modules/_multiprocessing/ |
H A D | semaphore.c | 221 /* OS X 10.4 defines SEM_FAILED as -1 instead of (sem_t *)-1; this gives 225 # define SEM_FAILED ((sem_t *)-1) 236 sem_timedwait_save(sem_t *sem, struct timespec *deadline, PyThreadState *_save) in sem_timedwait_save()
|
/foundation/ability/ability_lite/services/abilitymgr_lite/tools/src/ |
H A D | ability_tool.cpp | 44 static sem_t g_sem;
|
/foundation/ability/ability_lite/services/abilitymgr_lite/unittest/utils/ |
H A D | ability_test_helper.cpp | 37 static sem_t g_sem;
|
/third_party/rust/crates/libc/src/unix/bsd/freebsdlike/ |
H A D | mod.rs | 1322 pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t; 1449 pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; in sem_destroy() 1450 pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; in sem_init() 1645 pub fn sem_getvalue(sem: *mut sem_t, sval: *mut ::c_int) -> ::c_int; in sem_getvalue() 1646 pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int; in sem_timedwait()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_pthread.cpp | 448 sem_t semp; in Bm_function_Sem_timewait() 461 sem_t semp; in Bm_function_Sem_post_wait()
|
/third_party/rust/crates/libc/src/unix/nto/ |
H A D | mod.rs | 69 pub type sem_t = sync_t; types 1370 pub const SEM_FAILED: *mut ::sem_t = 0xFFFFFFFFFFFFFFFF as *mut sem_t; 2655 pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; in sem_destroy() 2656 pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; in sem_init() 2824 pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int; in sem_timedwait() 2825 pub fn sem_getvalue(sem: *mut sem_t, sval: *mut ::c_int) -> ::c_int; in sem_getvalue() 2899 pub fn sem_close(sem: *mut sem_t) -> ::c_int; in sem_close() 2910 pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t; in sem_open()
|
/third_party/rust/crates/libc/src/fuchsia/ |
H A D | mod.rs | 858 pub struct sem_t { structure names 2458 pub const SEM_FAILED: *mut ::sem_t = 0 as *mut sem_t; 3795 pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; in sem_destroy() 3796 pub fn sem_wait(sem: *mut sem_t) -> ::c_int; in sem_wait() 3797 pub fn sem_trywait(sem: *mut sem_t) -> ::c_int; in sem_trywait() 3798 pub fn sem_post(sem: *mut sem_t) -> ::c_int; in sem_post() 3799 pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; in sem_init() 4116 pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int; in sem_timedwait() 4117 pub fn sem_getvalue(sem: *mut sem_t, sva in sem_timedwait() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/kvm/ |
H A D | set_memory_region_test.c | 41 static sem_t vcpu_ready;
|
/kernel/linux/linux-6.6/tools/testing/selftests/kvm/ |
H A D | set_memory_region_test.c | 39 static sem_t vcpu_ready;
|
/kernel/liteos_a/testsuites/kernel/sample/posix/pthread/ |
H A D | It_posix_pthread.h | 173 sem_t sem;
|
/third_party/ffmpeg/libavdevice/ |
H A D | jack.c | 47 sem_t packet_count;
|
/third_party/libuv/include/uv/ |
H A D | unix.h | 104 # define UV_PLATFORM_SEM_T sem_t
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_create/ |
H A D | threads_scenarii.c | 44 sem_t sem; /* This semaphore is used to signal the end of the detached threads execution */
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_exit/ |
H A D | threads_scenarii.c | 44 sem_t sem; /* This semaphore is used to signal the end of the detached threads execution */
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/testfrmw/ |
H A D | threads_scenarii.c | 87 sem_t sem;
|
/third_party/ltp/testcases/open_posix_testsuite/stress/threads/pthread_self/ |
H A D | threads_scenarii.c | 44 sem_t sem; /* This semaphore is used to signal the end of the detached threads execution */
|
/third_party/node/deps/uv/include/uv/ |
H A D | unix.h | 105 # define UV_PLATFORM_SEM_T sem_t
|
/third_party/rust/crates/libc/src/unix/linux_like/linux/uclibc/x86_64/ |
H A D | mod.rs | 268 pub struct sem_t { structure names
|
/third_party/rust/crates/libc/src/unix/hermit/ |
H A D | mod.rs | 429 pub struct sem_t { structure names 965 pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; in sem_destroy() 966 pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; in sem_init()
|
/third_party/rust/crates/libc/src/unix/linux_like/android/ |
H A D | mod.rs | 132 pub struct sem_t { structure names 1595 pub const SEM_FAILED: *mut sem_t = 0 as *mut sem_t; 3253 pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int; in sem_timedwait() 3254 pub fn sem_getvalue(sem: *mut sem_t, sval: *mut ::c_int) -> ::c_int; in sem_getvalue() 3360 pub fn sem_close(sem: *mut sem_t) -> ::c_int; in sem_close() 3369 pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t; in sem_open()
|
/third_party/rust/crates/libc/src/unix/solarish/ |
H A D | mod.rs | 362 pub struct sem_t { structure names 2708 pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; in sem_destroy() 2709 pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; in sem_init() 2799 pub fn sem_timedwait(sem: *mut sem_t, abstime: *const ::timespec) -> ::c_int; in sem_timedwait() 2800 pub fn sem_getvalue(sem: *mut sem_t, sval: *mut ::c_int) -> ::c_int; in sem_getvalue() 2947 pub fn sem_close(sem: *mut sem_t) -> ::c_int; in sem_close() 2986 pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t; in sem_open()
|
/third_party/rust/crates/libc/src/unix/haiku/ |
H A D | mod.rs | 351 pub struct sem_t { structure names 1647 pub fn sem_destroy(sem: *mut sem_t) -> ::c_int; in sem_destroy() 1648 pub fn sem_init(sem: *mut sem_t, pshared: ::c_int, value: ::c_uint) -> ::c_int; in sem_init() 1765 pub fn sem_close(sem: *mut sem_t) -> ::c_int; in sem_close() 1775 pub fn sem_open(name: *const ::c_char, oflag: ::c_int, ...) -> *mut sem_t; in sem_open()
|
/foundation/bundlemanager/bundle_framework_lite/services/bundlemgr_lite/tools/src/ |
H A D | command_parser.cpp | 49 static sem_t g_sem;
|