Home
last modified time | relevance | path

Searched refs:pthread_mutex_timedlock (Results 1 - 25 of 40) sorted by relevance

12

/third_party/musl/libc-test/src/functionalext/supplement/thread/
H A Dpthread_mutex_timedlock.c38 int rev = pthread_mutex_timedlock(&mutex, &ts); in pthread_mutex_timedlock_0100()
60 int rev = pthread_mutex_timedlock(&mutex, &ts); in pthread_mutex_timedlock_0200()
83 rev = pthread_mutex_timedlock(&mutex, &ts); in pthread_mutex_timedlock_0300()
/third_party/musl/libc-test/src/functionalext/supplement/thread/thread_gtest/
H A Dthread_mutex_test.cpp184 EXPECT_EQ(ETIMEDOUT, pthread_mutex_timedlock(&mutex_, &timeSpec_)); in HWTEST_F()
186 EXPECT_EQ(EINVAL, pthread_mutex_timedlock(&mutex_, &timeSpec_)); in HWTEST_F()
190 EXPECT_EQ(0, pthread_mutex_timedlock(&mutex_, &timeSpec_)); in HWTEST_F()
196 * @tc.desc: Verify the correctness of the pthread_mutex_timedlock, especially whether the ETIMEOUT error can be
205 EXPECT_EQ(0, pthread_mutex_timedlock(&mutex_, &timeSpec_)); in HWTEST_F()
214 intptr_t joinResult = pthread_mutex_timedlock(mutexArg, &ts); in HWTEST_F()
/third_party/musl/Benchmark/musl/
H A Dlibc_pthread.cpp140 pthread_mutex_timedlock(&mutex, &ts); in Bm_function_pthread_mutex_timedlock_fast()
157 pthread_mutex_timedlock(&mutex, &ts); in Bm_function_pthread_mutex_timedlock_errchk()
174 pthread_mutex_timedlock(&mutex, &ts); in Bm_function_pthread_mutex_timedlock_rec()
191 pthread_mutex_timedlock(&mutex, &ts); in Bm_function_pthread_mutex_timedlock_pi_fast()
208 pthread_mutex_timedlock(&mutex, &ts); in Bm_function_pthread_mutex_timedlock_pi_errchk()
225 pthread_mutex_timedlock(&mutex, &ts); in Bm_function_pthread_mutex_timedlock_pi_rec()
/third_party/musl/compat/time32/
H A Dpthread_mutex_timedlock_time32.c7 return pthread_mutex_timedlock(m, !ts32 ? 0 : (&(struct timespec){ in __pthread_mutex_timedlock_time32()
/third_party/musl/porting/uniproton/kernel/include/
H A Dpthread.h114 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
236 __REDIR(pthread_mutex_timedlock, __pthread_mutex_timedlock_time64);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dpthread.h114 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
236 __REDIR(pthread_mutex_timedlock, __pthread_mutex_timedlock_time64);
/third_party/musl/porting/liteos_m/kernel/include/
H A Dpthread.h114 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
236 __REDIR(pthread_mutex_timedlock, __pthread_mutex_timedlock_time64);
/third_party/musl/porting/liteos_m/user/include/
H A Dpthread.h107 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
228 __REDIR(pthread_mutex_timedlock, __pthread_mutex_timedlock_time64);
H A Dusr_lib_ops.h73 int (*pthread_mutex_timedlock)(pthread_mutex_t *mutex, const struct timespec *absTimeout); member
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/pthread_mutex_timedlock/
H A D5-2.c8 * Test that pthread_mutex_timedlock()
19 * 2. Call pthread_mutex_timedlock inside of the thread passing to it
21 * 3. Save the return value of pthread_mutex_timedlock(). It should be EINVAL.
37 pthread_mutex_timedlock(). */
41 pthread_mutex_timedlock(). */
53 /* Create a thread that will call pthread_mutex_timedlock */ in main()
65 /* Check the return status of pthread_mutex_timedlock(). */ in main()
98 ret = pthread_mutex_timedlock(&mutex, &timeout); in f1()
H A D5-1.c8 * Test that pthread_mutex_timedlock()
19 * 2. Call pthread_mutex_timedlock inside of the thread passing to it a negative number in the
21 * 3. Save the return value of pthread_mutex_timedlock(). It should be EINVAL.
37 pthread_mutex_timedlock(). */
41 pthread_mutex_timedlock(). */
53 /* Create a thread that will call pthread_mutex_timedlock */ in main()
65 /* Check the return status of pthread_mutex_timedlock(). */ in main()
98 ret = pthread_mutex_timedlock(&mutex, &timeout); in f1()
H A D5-3.c8 * Test that pthread_mutex_timedlock()
17 * 2. Inside the thread, call pthread_mutex_timedlock. It should block and return
19 * 3. Save the return value of pthread_mutex_timedlock() and cleanup mutex stuff.
33 pthread_mutex_timedlock(). */
37 pthread_mutex_timedlock(). */
55 /* Create a thread that will call pthread_mutex_timedlock */ in main()
78 /* Check the return status of pthread_mutex_timedlock(). */ in main()
105 ret = pthread_mutex_timedlock(&mutex, &timeout); in f1()
H A D4-1.c8 * Test that pthread_mutex_timedlock()
14 * 1. Create a thread, and call pthread_mutex_timedlock inside of it. It should not block
16 * 2. Save the return value of pthread_mutex_timedlock(). It should be 0.
29 pthread_mutex_timedlock(). */
33 pthread_mutex_timedlock(). */
45 /* Create a thread that will call pthread_mutex_timedlock */ in main()
57 /* Check the return status of pthread_mutex_timedlock(). */ in main()
82 ret = pthread_mutex_timedlock(&mutex, &timeout); in f1()
H A D2-1.c8 * Test that pthread_mutex_timedlock()
19 * 2. Create a thread, and call pthread_mutex_timedlock inside of it. It should block for
39 pthread_mutex_timedlock(). */
45 pthread_mutex_timedlock(). */
62 /* Create a thread that will call pthread_mutex_timedlock */ in main()
136 if (pthread_mutex_timedlock(&mutex, &timeout) != ETIMEDOUT) { in f1()
137 perror("Error in pthread_mutex_timedlock().\n"); in f1()
H A D1-1.c8 * Test that pthread_mutex_timedlock()
19 * 2. Create a thread, and call pthread_mutex_timedlock inside of it. It should block for
36 pthread_mutex_timedlock(). */
42 pthread_mutex_timedlock(). */
59 /* Create a thread that will call pthread_mutex_timedlock */ in main()
123 if (pthread_mutex_timedlock(&mutex, &timeout) != ETIMEDOUT) { in f1()
124 perror("Error in pthread_mutex_timedlock().\n"); in f1()
/third_party/musl/libc-test/src/regression/
H A Dpthread-robust-detach.c50 TX(r, pthread_mutex_timedlock(&mtx, &ts), EOWNERDEAD); in f()
/third_party/musl/porting/linux/user/include/
H A Dpthread.h137 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
409 __REDIR(pthread_mutex_timedlock, __pthread_mutex_timedlock_time64);
/third_party/musl/porting/liteos_a/kernel/include/
H A Dpthread.h178 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
281 __REDIR(pthread_mutex_timedlock, __pthread_mutex_timedlock_time64);
/third_party/musl/include/
H A Dpthread.h112 int pthread_mutex_timedlock(pthread_mutex_t *__restrict, const struct timespec *__restrict);
384 __REDIR(pthread_mutex_timedlock, __pthread_mutex_timedlock_time64);
/third_party/musl/porting/linux/user/src/thread/
H A Dpthread_mutex_timedlock.c116 weak_alias(__pthread_mutex_timedlock, pthread_mutex_timedlock)
/third_party/musl/porting/liteos_a/user/src/thread/
H A Dpthread_mutex_timedlock.c90 weak_alias(__pthread_mutex_timedlock, pthread_mutex_timedlock);
/third_party/musl/src/thread/
H A Dpthread_mutex_timedlock.c103 weak_alias(__pthread_mutex_timedlock, pthread_mutex_timedlock);
/third_party/musl/libc-test/src/common/
H A Dtest.h74 #define __pthread_mutex_timedlock_time64 pthread_mutex_timedlock
/third_party/ltp/lib/
H A Dsafe_pthread.c227 ret = pthread_mutex_timedlock(mutex, abstime); in safe_pthread_mutex_timedlock()
231 "pthread_mutex_timedlock(%p, {%lld, %ld}) failed: %s", in safe_pthread_mutex_timedlock()
/third_party/musl/libc-test/src/functionalext/fortify/
H A Dpthread_fortify_test.c91 *(int*)a[1] = pthread_mutex_timedlock(a[0], &ts); in pthread_mutex_timedlock_after_destroyed()

Completed in 12 milliseconds

12