Home
last modified time | relevance | path

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

12345678

/external/clang/test/Analysis/
Dpthreadlock.c11 extern int pthread_mutex_lock(pthread_mutex_t *);
24 pthread_mutex_lock(&mtx1); // no-warning in ok1()
36 pthread_mutex_lock(&mtx1); // no-warning in ok3()
38 pthread_mutex_lock(&mtx1); // no-warning in ok3()
45 pthread_mutex_lock(&mtx1); // no-warning in ok4()
47 pthread_mutex_lock(&mtx2); // no-warning in ok4()
74 pthread_mutex_lock(&mtx1); // no-warning in bad1()
75 pthread_mutex_lock(&mtx1); // expected-warning{{This lock has already been acquired}} in bad1()
81 pthread_mutex_lock(&mtx1); // no-warning in bad2()
83 pthread_mutex_lock(&mtx1); // no-warning in bad2()
[all …]
/external/webkit/Tools/DumpRenderTree/pthreads/
DJavaScriptThreadingPthreads.cpp66 pthread_mutex_lock(&javaScriptThreadsMutex); in runJavaScriptThread()
70 pthread_mutex_lock(&javaScriptThreadsMutex); in runJavaScriptThread()
75 pthread_mutex_lock(&javaScriptThreadsMutex); in runJavaScriptThread()
81 pthread_mutex_lock(&javaScriptThreadsMutex); in runJavaScriptThread()
94 pthread_mutex_lock(&javaScriptThreadsMutex); in runJavaScriptThread()
105 pthread_mutex_lock(&javaScriptThreadsMutex); in runJavaScriptThread()
118 pthread_mutex_lock(&javaScriptThreadsMutex); in startJavaScriptThreads()
132 pthread_mutex_lock(&javaScriptThreadsMutex); in stopJavaScriptThreads()
139 pthread_mutex_lock(&javaScriptThreadsMutex); in stopJavaScriptThreads()
/external/valgrind/main/helgrind/tests/
Dhg02_deadlock.c9 pthread_mutex_lock(&m1); in t1()
10 pthread_mutex_lock(&m2); in t1()
19 pthread_mutex_lock(&m2); in t2()
20 pthread_mutex_lock(&m1); in t2()
32 pthread_mutex_lock(&m1); in main()
Dtc15_laog_lockdel.c27 r = pthread_mutex_lock( mx1 ); assert(r==0); in main()
28 r = pthread_mutex_lock( mx2 ); assert(r==0); in main()
35 r = pthread_mutex_lock( mx2 ); assert(r==0); /* error */ in main()
36 r = pthread_mutex_lock( mx1 ); assert(r==0); in main()
52 r = pthread_mutex_lock( mx2 ); assert(r==0); in main()
53 r = pthread_mutex_lock( mx1 ); assert(r==0); /* no error */ in main()
Dtc13_laog1.c17 r = pthread_mutex_lock( &mx1 ); assert(r==0); in main()
18 r = pthread_mutex_lock( &mx2 ); assert(r==0); in main()
23 r = pthread_mutex_lock( &mx2 ); assert(r==0); /* error */ in main()
24 r = pthread_mutex_lock( &mx1 ); assert(r==0); in main()
Dtc22_exit_w_lock.c18 int r= pthread_mutex_lock( &mxC1 ); assert(!r); in child_fn1()
26 r= pthread_mutex_lock( &mxC2 ); assert(!r); in child_fn2()
27 r= pthread_mutex_lock( &mxC2b ); assert(!r); in child_fn2()
46 r= pthread_mutex_lock( &mxP ); in main()
Dtc13_laog1.stderr.exp11 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
15 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
19 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
23 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
Dtc15_laog_lockdel.stderr.exp13 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
17 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
21 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
25 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
Dhg02_deadlock.stderr.exp15 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
21 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
27 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
33 at 0x........: pthread_mutex_lock (hg_intercepts.c:...)
Dtc04_free_lock.c22 pthread_mutex_lock( &xx->lock ); in main()
38 pthread_mutex_lock( &mx ); in bar()
47 pthread_mutex_lock( &mx ); in foo()
Dlocked_vs_unlocked2.c27 r= pthread_mutex_lock(&mx1a); assert(!r); in child_fn1()
28 r= pthread_mutex_lock(&mx1b); assert(!r); in child_fn1()
43 r= pthread_mutex_lock(&mx2a); assert(!r); in child_fn2()
44 r= pthread_mutex_lock(&mx2b); assert(!r); in child_fn2()
Dtc10_rec_lock.c28 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()
30 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()
32 r = pthread_mutex_lock( &mx1 ); assert(r == 0); in nearly_main()
/external/stressapptest/src/
Ddisk_blocks.cc38 pthread_mutex_lock(&data_mutex_); in CleanTable()
63 pthread_mutex_lock(&data_mutex_); in NumElems()
75 pthread_mutex_lock(&data_mutex_); in InsertOnStructure()
101 pthread_mutex_lock(&data_mutex_); in RemoveBlock()
121 pthread_mutex_lock(&data_mutex_); in ReleaseBlock()
143 pthread_mutex_lock(&data_mutex_); in GetRandomBlock()
171 pthread_mutex_lock(&parameter_mutex_); in SetParameters()
194 pthread_mutex_lock(&parameter_mutex_); in GetUnusedBlock()
233 pthread_mutex_lock(&data_mutex_); in GetUnusedBlock()
287 pthread_mutex_lock(&data_mutex_); in SetBlockAsInitialized()
[all …]
Dlogger.cc57 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_)); in StopThread()
81 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_)); in QueueLogLine()
121 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_)); in ThreadMain()
150 LOGGER_ASSERT(0 == pthread_mutex_lock(&queued_lines_mutex_)); in ThreadMain()
/external/libusb/libusb/
Dcore.c518 pthread_mutex_lock(&ctx->usb_devs_lock); in usbi_alloc_device()
560 pthread_mutex_lock(&ctx->usb_devs_lock); in usbi_get_device_by_session_id()
802 pthread_mutex_lock(&dev->lock); in libusb_ref_device()
820 pthread_mutex_lock(&dev->lock); in libusb_unref_device()
830 pthread_mutex_lock(&dev->ctx->usb_devs_lock); in libusb_unref_device()
885 pthread_mutex_lock(&ctx->open_devs_lock); in libusb_open()
899 pthread_mutex_lock(&ctx->pollfd_modify_lock); in libusb_open()
907 pthread_mutex_lock(&ctx->pollfd_modify_lock); in libusb_open()
922 pthread_mutex_lock(&ctx->pollfd_modify_lock); in libusb_open()
986 pthread_mutex_lock(&ctx->open_devs_lock); in do_close()
[all …]
Dio.c1098 pthread_mutex_lock(&ctx->flying_transfers_lock); in add_to_flying_list()
1226 pthread_mutex_lock(&itransfer->lock); in libusb_submit_transfer()
1238 pthread_mutex_lock(&ctx->flying_transfers_lock); in libusb_submit_transfer()
1281 pthread_mutex_lock(&itransfer->lock); in libusb_cancel_transfer()
1370 pthread_mutex_lock(&ctx->flying_transfers_lock); in usbi_handle_transfer_completion()
1403 pthread_mutex_lock(&ctx->event_waiters_lock); in usbi_handle_transfer_completion()
1453 pthread_mutex_lock(&ctx->pollfd_modify_lock); in libusb_try_lock_events()
1490 pthread_mutex_lock(&ctx->events_lock); in libusb_lock_events()
1511 pthread_mutex_lock(&ctx->event_waiters_lock); in libusb_unlock_events()
1544 pthread_mutex_lock(&ctx->pollfd_modify_lock); in libusb_event_handling_ok()
[all …]
/external/compiler-rt/lib/tsan/rtl_tests/
Dtsan_posix.cc33 EXPECT_EQ(pthread_mutex_lock(k->mtx), 0); in thread_secific_dtor()
104 EXPECT_EQ(pthread_mutex_lock(&ctx.m), 0); in cond_thread()
110 EXPECT_EQ(pthread_mutex_lock(&ctx.m), 0); in cond_thread()
115 EXPECT_EQ(pthread_mutex_lock(&ctx.m), 0); in cond_thread()
131 EXPECT_EQ(pthread_mutex_lock(&ctx.m), 0); in TEST()
138 EXPECT_EQ(pthread_mutex_lock(&ctx.m), 0); in TEST()
/external/valgrind/unittest/
Dlibstdc++_tests.cc67 pthread_mutex_lock(&mu); in Thread()
95 pthread_mutex_lock(&mu); in TEST()
131 pthread_mutex_lock(&mu); in Thread()
158 pthread_mutex_lock(&mu); in TEST()
/external/valgrind/main/drd/tests/
Dpth_cancel_locked.c17 pthread_mutex_lock(&s_mutex2); in thread()
19 pthread_mutex_lock(&s_mutex1); in thread()
35 pthread_mutex_lock(&s_mutex1); in main()
Dpth_cond_race.c44 pthread_mutex_lock(&s_mutex); in main()
62 pthread_mutex_lock(&s_mutex); in thread_func()
66 if (s_use_mutex) pthread_mutex_lock(&s_mutex); in thread_func()
Dpth_broadcast.c41 pthread_mutex_lock(&p->m_mutex); in csema_p()
51 pthread_mutex_lock(&p->m_mutex); in csema_v()
90 pthread_mutex_lock(&s_mutex); in thread_func()
164 pthread_mutex_lock(&s_mutex); in main()
/external/srec/audio/AudioIn/UNIX/src/
Daudioin.c206 pthread_mutex_lock(&gAudioMutex); in Initialize()
258 pthread_mutex_lock ( &gAudioMutex );
361 pthread_mutex_lock ( &gAudioMutex ); in AcquisitionThread()
464 pthread_mutex_lock ( &gAudioMutex ); in AcquisitionThread()
538 pthread_mutex_lock ( &gAudioMutex ); in AcquisitionThread()
568 pthread_mutex_lock ( &gAudioMutex ); in AcquisitionThread()
666 pthread_mutex_lock ( &gAudioMutex ); in AcquisitionThread()
782 pthread_mutex_lock ( &gAudioMutex ); in AcquisitionThread()
994 pthread_mutex_lock ( &gAudioMutex ); in lhs_audioinOpenEx()
1130 pthread_mutex_lock ( &gAudioMutex ); in lhs_audioinClose()
[all …]
/external/valgrind/main/none/tests/x86/
Dyield.c21 pthread_mutex_lock(&m_go); in spinner()
36 pthread_mutex_lock(&m_go); in rep_nopper()
61 pthread_mutex_lock(&m_go); in main()
/external/bluetooth/bluedroid/hci/src/
Dutils.c100 pthread_mutex_lock(&utils_mutex); in utils_enqueue()
130 pthread_mutex_lock(&utils_mutex); in utils_dequeue()
205 pthread_mutex_lock(&utils_mutex); in utils_remove_from_queue()
291 pthread_mutex_lock(&utils_mutex); in utils_lock()
/external/webp/src/utils/
Dthread.c64 static int pthread_mutex_lock(pthread_mutex_t* const mutex) { in pthread_mutex_lock() function
127 pthread_mutex_lock(mutex); in pthread_cond_wait()
142 pthread_mutex_lock(&worker->mutex_); in WebPWorkerThreadLoop()
167 pthread_mutex_lock(&worker->mutex_); in WebPWorkerChangeState()
206 pthread_mutex_lock(&worker->mutex_); in WebPWorkerReset()

12345678