Home
last modified time | relevance | path

Searched refs:sem_trywait (Results 1 - 25 of 35) sorted by relevance

12

/third_party/musl/porting/linux/user/src/thread/
H A Dsem_timedwait.c13 while (sem_trywait(sem)) { in __sem_timedwait()
31 if (!sem_trywait(sem)) return 0; in sem_timedwait()
/third_party/musl/src/thread/
H A Dsem_timedwait.c16 while (sem_trywait(sem)) { in __sem_timedwait()
35 if (!sem_trywait(sem)) return 0; in sem_timedwait()
H A Dsem_trywait.c5 int sem_trywait(sem_t *sem) in sem_trywait() function
/third_party/musl/libc-test/src/regression/
H A Dpthread_cancel-sem_wait.c69 sem_trywait(&sem2); in main()
89 sem_trywait(&sem2); in main()
99 sem_trywait(&sem2); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/fork/
H A D14-1.c123 ret = sem_trywait(sem_linked); in main()
131 UNRESOLVED(errno, "sem_trywait failed"); in main()
136 ret = sem_trywait(sem_unlinked); in main()
144 UNRESOLVED(errno, "sem_trywait failed"); in main()
/third_party/python/Modules/_multiprocessing/
H A Dsemaphore.c248 if (sem_trywait(sem) == 0) in sem_timedwait_save()
342 res = sem_trywait(self->handle); in _multiprocessing_SemLock_acquire_impl()
407 if (sem_trywait(self->handle) < 0) { in _multiprocessing_SemLock_release_impl()
640 if (sem_trywait(self->handle) < 0) { in _multiprocessing_SemLock__is_zero_impl()
/third_party/musl/libc-test/src/api/
H A Dsemaphore.c11 {int(*p)(sem_t*) = sem_trywait;} in f()
/third_party/musl/porting/uniproton/kernel/include/
H A Dsemaphore.h28 int sem_trywait(sem_t *);
/third_party/musl/porting/liteos_m/user/include/
H A Dsemaphore.h28 int sem_trywait(sem_t *);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dsemaphore.h30 int sem_trywait(sem_t *);
/third_party/musl/porting/liteos_a_newlib/kernel/include/
H A Dsemaphore.h27 int sem_trywait(sem_t *);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dsemaphore.h28 int sem_trywait(sem_t *);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dsemaphore.h28 int sem_trywait(sem_t *);
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_getvalue/
H A D2-1.c43 if (sem_trywait(mysemp) == -1) { in main()
H A D5-1.c48 if (sem_trywait(mysemp) == -1) { in main()
49 perror(ERROR_PREFIX "sem_trywait"); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_wait/
H A D11-1.c10 * sem_trywait shall try to lock the unlocked semaphore and decrement
23 #define FUNCTION "sem_trywait"
41 /* Lock Semaphore by sem_trywait */ in main()
42 if (sem_trywait(mysemp) == -1) { in main()
H A D5-1.c11 * sem_trywait when its already locked.
23 #define FUNCTION "sem_trywait"
40 /* Lock Semaphore by sem_trywait */ in main()
41 if ((sem_trywait(mysemp) == -1) && (errno == EAGAIN)) { in main()
H A D12-1.c10 * sem_trywait shall try to lock the locked semaphore and decrement
23 #define FUNCTION "sem_trywait"
40 /* Try to Lock Semaphore by sem_trywait */ in main()
41 if (sem_trywait(mysemp) == -1) { in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/sem_init/
H A D2-1.c36 if (sem_trywait(&mysemp) == -1) { in main()
/third_party/musl/include/
H A Dsemaphore.h28 int sem_trywait(sem_t *);
/third_party/libuv/src/unix/
H A Dos390-syscalls.h71 int sem_trywait(UV_PLATFORM_SEM_T* semid);
/third_party/node/deps/uv/src/unix/
H A Dos390-syscalls.h71 int sem_trywait(UV_PLATFORM_SEM_T* semid);
/third_party/vk-gl-cts/framework/delibs/dethread/unix/
H A DdeSemaphoreUnix.c81 return (sem_trywait(sem) == 0); in deSemaphore_tryDecrement()
H A DdeNamedSemaphoreUnix.c105 return (sem_trywait(sem) == 0); in deSemaphore_tryDecrement()
/third_party/musl/libc-test/src/functional/
H A Dsem_open.c45 TEST(sem_trywait(sem) == -1 && errno == EAGAIN, in main()

Completed in 6 milliseconds

12