Home
last modified time | relevance | path

Searched refs:pthread_self (Results 1 – 25 of 88) sorted by relevance

1234

/external/valgrind/drd/tests/
Dmonitor_example.cpp107 m_owner = pthread_self(); in lock()
119 assert(m_owner == pthread_self()); in wait()
123 m_owner = pthread_self(); in wait()
139 result = m_recursion_count > 0 && m_owner == pthread_self(); in is_locked_by_self()
Dpth_barrier.c53 printf("thread %lx iteration 0\n", pthread_self()); in threadfunc()
59 pthread_self(), i + 1, &array[i]); in threadfunc()
Dpth_detached_sem.c35 pthread_detach(pthread_self()); in thread_func2()
Dpth_detached.c31 pthread_detach(pthread_self()); in thread_func2()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_mac.cc157 return reinterpret_cast<uptr>(pthread_self()); in GetTid()
164 uptr stacksize = pthread_get_stacksize_np(pthread_self()); in GetThreadStackTopAndBottom()
179 void *stackaddr = pthread_get_stackaddr_np(pthread_self()); in GetThreadStackTopAndBottom()
238 CHECK_NE(owner_, (uptr)pthread_self()); in Lock()
241 owner_ = (uptr)pthread_self(); in Lock()
245 CHECK(owner_ == (uptr)pthread_self()); in Unlock()
251 CHECK_EQ((uptr)pthread_self(), owner_); in CheckLocked()
/external/valgrind/memcheck/tests/
Dthreadname.c25 pthread_setname_np(pthread_self(), threadname); in child_fn_2()
41 pthread_setname_np(pthread_self(), threadname); in child_fn_1()
/external/skia/include/ports/
DSkMutex_pthread.h33 SkDEBUGCODE(fOwner = pthread_self();) in acquire()
42 SkASSERT(0 != pthread_equal(fOwner, pthread_self())); in assertHeld()
/external/libunwind/tests/
DGtest-concurrent.c64 printf ("%lx: IP=%lx\n", (long) pthread_self (), (unsigned long) ip); in handler()
79 pthread_kill (pthread_self (), SIGUSR1); in worker()
/external/libxml2/
Dthreads.c82 extern pthread_t pthread_self ()
365 if (pthread_equal(tok->tid, pthread_self())) { in xmlRMutexLock()
376 tok->tid = pthread_self(); in xmlRMutexLock()
777 id = pthread_self(); in xmlGetThreadId()
816 return (pthread_equal(mainthread,pthread_self())); in xmlIsMainThread()
880 (pthread_self != NULL) && in xmlInitThreads()
958 mainthread = pthread_self(); in xmlOnceInit()
/external/mesa3d/src/glx/apple/
Dapple_glx_log.c80 thread = (uint64_t)(uintptr_t)pthread_self(); in _apple_glx_vlog()
85 thread = (uint64_t)(uintptr_t)pthread_self(); in _apple_glx_vlog()
Dapple_glx.c72 updated = apple_glx_context_surface_changed(uid, pthread_self()); in surface_notify_handler()
/external/compiler-rt/lib/asan/
Dasan_mac.cc292 block, pthread_self()); in asan_dispatch_call_block_and_release()
325 asan_ctxt, pthread_self()); \
356 asan_ctxt, pthread_self()); in INTERCEPTOR()
/external/libcxx/src/
Dmutex.cpp167 pthread_t id = pthread_self(); in lock()
185 pthread_t id = pthread_self(); in try_lock()
/external/compiler-rt/test/msan/
Dpthread_getattr_np_deadlock.cc10 int res = pthread_getattr_np(pthread_self(), &attr); in ThreadFn()
/external/libvpx/libvpx/vp8/common/
Dthreading.h39 #define pthread_self() GetCurrentThreadId() macro
62 #define pthread_self() _gettid()
/external/compiler-rt/test/tsan/
Dthread_name2.cc18 pthread_setname_np(pthread_self(), "foobar2"); in Thread2()
Dsignal_errno.cc33 mainth = pthread_self(); in main()
Dthread_name.cc27 pthread_setname_np(pthread_self(), "Thread2"); in Thread2()
/external/skia/src/utils/
DSkThreadUtils_pthread_linux.cpp36 if (0 != pthread_getaffinity_np(pthread_self(), sizeof(cpu_set_t), &parentCpuset)) { in setProcessorAffinity()
/external/fio/os/
Dos-openbsd.h53 return (int) pthread_self(); in gettid()
/external/valgrind/none/tests/
Dpth_blockedsig.c49 main_thread = pthread_self (); in main()
/external/google-breakpad/src/client/ios/handler/
Dios_exception_minidump_generator.mm71 pthread_mach_thread_np(pthread_self()));
145 exception_ptr->thread_id = pthread_mach_thread_np(pthread_self());
165 if (pthread_mach_thread_np(pthread_self()) != thread_id)
/external/valgrind/helgrind/tests/
Dtc22_exit_w_lock.c28 r= pthread_detach( pthread_self() ); assert(!r); in child_fn2()
Dstackteardown.c82 r= pthread_detach( pthread_self() ); assert(!r); in child_fn()
/external/compiler-rt/lib/sanitizer_common/tests/
Dsanitizer_linux_test.cc218 pthread_getattr_np(pthread_self(), &attr); in thread_descriptor_size_test_func()
262 ASSERT_EQ(pthread_self(), ThreadSelf()); in TEST()

1234