Home
last modified time | relevance | path

Searched refs:pthread_mutex_lock (Results 1 – 25 of 181) sorted by relevance

12345678

/kernel/liteos_a/testsuites/kernel/sample/posix/mutex/full/
DIt_posix_mutex_077.c50 ret = pthread_mutex_lock(&g_mutex077); in TaskF01()
68 ret = pthread_mutex_lock(NULL); in Testcase()
71 ret = pthread_mutex_lock(&g_mutex077); in Testcase()
83 ret = pthread_mutex_lock(&g_mutex077); in Testcase()
101 ret = pthread_mutex_lock(&g_mutex077); in Testcase()
104 ret = pthread_mutex_lock(&g_mutex077); in Testcase()
107 ret = pthread_mutex_lock(&g_mutex077); in Testcase()
DIt_posix_mutex_099.c52 ret = pthread_mutex_lock(&g_mutex1099); in TaskF01()
55 ret = pthread_mutex_lock(&g_mutex1099); in TaskF01()
73 ret = pthread_mutex_lock(&g_mutex2099); in TaskF02()
76 ret = pthread_mutex_lock(&g_mutex2099); in TaskF02()
DIt_posix_mutex_095.c49 ret = pthread_mutex_lock(&mutex); in Testcase()
55 ret = pthread_mutex_lock(&mutex); in Testcase()
58 ret = pthread_mutex_lock(&mutex); in Testcase()
DIt_posix_mutex_038.c56 if ((ret = pthread_mutex_lock(&g_mutex038))) { in TaskF01()
98 if ((ret = pthread_mutex_lock(&g_mutex038))) { in Testcase()
102 if ((ret = pthread_mutex_lock(&g_mutex038))) { in Testcase()
136 if ((ret = pthread_mutex_lock(&g_mutex038))) { in Testcase()
DIt_posix_mutex_093.c52 ret = pthread_mutex_lock(&g_mutex1093); in TaskF01()
55 ret = pthread_mutex_lock(&g_mutex1093); in TaskF01()
76 ret = pthread_mutex_lock(&g_mutex2093); in TaskF02()
79 ret = pthread_mutex_lock(&g_mutex2093); in TaskF02()
DIt_posix_mutex_087.c50 ret = pthread_mutex_lock(&mutex); in Testcase()
56 ret = pthread_mutex_lock(&mutex); in Testcase()
59 ret = pthread_mutex_lock(&mutex); in Testcase()
DIt_posix_mutex_050.c47 ret = pthread_mutex_lock(&g_mutex050); in TaskF01()
50 ret = pthread_mutex_lock(&g_mutex050); in TaskF01()
71 ret = pthread_mutex_lock(&g_mutex050); in Testcase()
DIt_posix_mutex_076.c46 ret = pthread_mutex_lock(&g_mutex1076); in TaskF01()
73 ret = pthread_mutex_lock(&g_mutex1076); in Testcase()
76 ret = pthread_mutex_lock(&g_mutex1076); in Testcase()
/kernel/linux/linux-5.10/tools/include/linux/
Dspinlock.h13 #define spin_lock(x) pthread_mutex_lock(x)
15 #define spin_lock_bh(x) pthread_mutex_lock(x)
17 #define spin_lock_irq(x) pthread_mutex_lock(x)
19 #define spin_lock_irqsave(x, f) (void)f, pthread_mutex_lock(x)
27 pthread_mutex_lock(mutex); in arch_spin_lock()
/kernel/linux/linux-5.10/tools/lib/lockdep/tests/
DABBA_2threads.c13 pthread_mutex_lock(&b); in ba_lock()
18 pthread_mutex_lock(&a); in ba_lock()
34 pthread_mutex_lock(&a); in main()
39 pthread_mutex_lock(&b); in main()
DABA.c11 pthread_mutex_lock(&a); in main()
12 pthread_mutex_lock(&b); in main()
13 pthread_mutex_lock(&a); in main()
DAA.c10 pthread_mutex_lock(&a); in main()
11 pthread_mutex_lock(&a); in main()
Dcommon.h7 pthread_mutex_lock(&(a)); \
8 pthread_mutex_lock(&(b)); \
/kernel/linux/linux-5.10/tools/testing/selftests/membarrier/
Dmembarrier_test_multi_thread.c20 pthread_mutex_lock(&test_membarrier_thread_mutex); in test_membarrier_thread()
25 pthread_mutex_lock(&test_membarrier_thread_mutex); in test_membarrier_thread()
42 pthread_mutex_lock(&test_membarrier_thread_mutex); in test_mt_membarrier()
52 pthread_mutex_lock(&test_membarrier_thread_mutex); in test_mt_membarrier()
/kernel/liteos_a/testsuites/unittest/process/lock/mutex/smoke/
Dpthread_mutex_test_009.cpp44 ret = pthread_mutex_lock(&g_muxLock); in TaskF01()
70 ret = pthread_mutex_lock(&g_muxLock); in TestCase()
94 ret = pthread_mutex_lock(&g_muxLock); in TestCase()
97 ret = pthread_mutex_lock(&g_muxLock); in TestCase()
100 ret = pthread_mutex_lock(&g_muxLock); in TestCase()
Dpthread_mutex_test_004.cpp59 ret = pthread_mutex_lock(&g_muxLock003); in ThreadFuncTest3()
84 ret = pthread_mutex_lock(&g_muxLock002); in ThreadFuncTest2()
110 ret = pthread_mutex_lock(&g_muxLock001); in ThreadFuncTest1()
141 ret = pthread_mutex_lock(&g_muxLock001); in Testcase()
144 ret = pthread_mutex_lock(&g_muxLock002); in Testcase()
147 ret = pthread_mutex_lock(&g_muxLock003); in Testcase()
Dpthread_mutex_test_005.cpp59 ret = pthread_mutex_lock(&g_muxLock003); in ThreadFuncTest3()
85 ret = pthread_mutex_lock(&g_muxLock002); in ThreadFuncTest2()
111 ret = pthread_mutex_lock(&g_muxLock001); in ThreadFuncTest1()
143 ret = pthread_mutex_lock(&g_muxLock001); in Testcase()
146 ret = pthread_mutex_lock(&g_muxLock002); in Testcase()
149 ret = pthread_mutex_lock(&g_muxLock003); in Testcase()
Dpthread_mutex_test_006.cpp59 ret = pthread_mutex_lock(&g_mutexLock003); in ThreadFuncTest3()
84 ret = pthread_mutex_lock(&g_mutexLock002); in ThreadFuncTest2()
109 ret = pthread_mutex_lock(&g_mutexLock001); in ThreadFuncTest1()
139 ret = pthread_mutex_lock(&g_mutexLock001); in Testcase()
142 ret = pthread_mutex_lock(&g_mutexLock002); in Testcase()
145 ret = pthread_mutex_lock(&g_mutexLock003); in Testcase()
Dpthread_mutex_test_012.cpp46 ret = pthread_mutex_lock(&mutex); in TestCase()
52 ret = pthread_mutex_lock(&mutex); in TestCase()
55 ret = pthread_mutex_lock(&mutex); in TestCase()
Dpthread_mutex_test_015.cpp46 ret = pthread_mutex_lock(&mutex); in TestCase()
52 ret = pthread_mutex_lock(&mutex); in TestCase()
55 ret = pthread_mutex_lock(&mutex); in TestCase()
Dpthread_mutex_test_010.cpp40 ret = pthread_mutex_lock(&g_mutexLock001); in TaskF01()
69 ret = pthread_mutex_lock(&g_mutexLock001); in TestCase()
72 ret = pthread_mutex_lock(&g_mutexLock001); in TestCase()
Dpthread_mutex_test_017.cpp47 ret = pthread_mutex_lock(&g_mutexLock); in ThreadFuncTest3()
63 ret = pthread_mutex_lock(&g_mutexLock); in ThreadFuncTest2()
90 ret = pthread_mutex_lock(&g_mutexLock); in TestCase()
/kernel/liteos_a/compat/posix/src/
Dpthread_cond.c137 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_init()
166 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_broadcast()
189 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_signal()
221 (VOID)pthread_mutex_lock(cond->mutex); in PthreadCountSub()
269 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_timedwait()
291 if (pthread_mutex_lock(mutex) != ENOERR) { in pthread_cond_timedwait()
317 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_wait()
330 if (pthread_mutex_lock(mutex) != ENOERR) { in pthread_cond_wait()
Dpthread.c288 if (pthread_mutex_lock(&g_pthreadsDataMutex) != ENOERR) { in pthread_exit()
367 (VOID)pthread_mutex_lock(&g_pthreadsDataMutex); in pthread_join()
383 (VOID)pthread_mutex_lock(&g_pthreadsDataMutex); in pthread_join()
423 if (pthread_mutex_lock(&g_pthreadsDataMutex) != ENOERR) { in pthread_detach()
474 ret = pthread_mutex_lock(&g_pthreadsDataMutex); in pthread_setschedparam()
510 ret = pthread_mutex_lock(&g_pthreadsDataMutex); in pthread_getschedparam()
544 ret = pthread_mutex_lock(&g_pthreadsDataMutex); in pthread_once()
603 ret = pthread_mutex_lock(&g_pthreadsDataMutex); in pthread_setcancelstate()
637 ret = pthread_mutex_lock(&g_pthreadsDataMutex); in pthread_setcanceltype()
690 if (pthread_mutex_lock(&g_pthreadsDataMutex) != ENOERR) { in pthread_cancel()
/kernel/liteos_m/kal/posix/src/
Dpthread_cond.c161 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_init()
194 (VOID)pthread_mutex_lock(cond->mutex); in PthreadCountSub()
210 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_broadcast()
230 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_signal()
289 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_timedwait()
308 if (pthread_mutex_lock(mutex) != 0) { in pthread_cond_timedwait()
333 (VOID)pthread_mutex_lock(cond->mutex); in pthread_cond_wait()
341 if (pthread_mutex_lock(mutex) != 0) { in pthread_cond_wait()

12345678