Home
last modified time | relevance | path

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

123

/external/qemu/distrib/sdl-1.2.12/src/cdrom/macosx/
DSDLOSXCAGuard.c98 if(pthread_self() != cag->mOwner) in SDLOSXCAGuard_Lock()
103 cag->mOwner = pthread_self(); in SDLOSXCAGuard_Lock()
113 assert(pthread_self() == cag->mOwner); in SDLOSXCAGuard_Unlock()
126 if (pthread_self() == cag->mOwner) { in SDLOSXCAGuard_Try()
132 cag->mOwner = pthread_self(); in SDLOSXCAGuard_Try()
144 assert(pthread_self() == cag->mOwner); in SDLOSXCAGuard_Wait()
151 cag->mOwner = pthread_self(); in SDLOSXCAGuard_Wait()
/external/valgrind/main/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/asan/
Dasan_mac.cc323 size_t stacksize = pthread_get_stacksize_np(pthread_self()); in SetThreadStackTopAndBottom()
324 void *stackaddr = pthread_get_stackaddr_np(pthread_self()); in SetThreadStackTopAndBottom()
338 CHECK(owner_ != (uintptr_t)pthread_self()); in Lock()
341 owner_ = (uintptr_t)pthread_self(); in Lock()
345 CHECK(owner_ == (uintptr_t)pthread_self()); in Unlock()
483 block, pthread_self()); in asan_dispatch_call_block_and_release()
521 asan_ctxt, pthread_self()); in INTERCEPTOR()
534 asan_ctxt, pthread_self()); in INTERCEPTOR()
560 asan_ctxt, pthread_self()); in INTERCEPTOR()
574 asan_ctxt, pthread_self()); in INTERCEPTOR()
[all …]
Dasan_linux.cc305 CHECK(pthread_getattr_np(pthread_self(), &attr) == 0); in SetThreadStackTopAndBottom()
333 owner_ = (uintptr_t)pthread_self(); in Lock()
337 CHECK(owner_ == (uintptr_t)pthread_self()); in Unlock()
/external/webkit/Source/JavaScriptCore/wtf/
DStackBounds.cpp82 pthread_t thread = pthread_self(); in initialize()
93 pthread_t thread = pthread_self(); in initialize()
97 threadInfo.tid = pthread_self(); in initialize()
127 pthread_t thread = pthread_self(); in initialize()
162 pthread_t thread = pthread_self(); in initialize()
DThreadingPthreads.cpp203 ThreadIdentifier id = identifierByPthreadHandle(pthread_self()); in initializeCurrentThreadInternal()
246 id = establishIdentifierForPthreadHandle(pthread_self()); in currentThread()
/external/dbus/dbus/
Ddbus-sysdeps-pthread.c129 pthread_t self = pthread_self (); in _dbus_pthread_mutex_lock()
245 _dbus_assert (pthread_equal (pmutex->holder, pthread_self ())); in _dbus_pthread_condvar_wait()
251 pmutex->holder = pthread_self(); /* other threads may have locked the mutex in the meantime */ in _dbus_pthread_condvar_wait()
272 _dbus_assert (pthread_equal (pmutex->holder, pthread_self ())); in _dbus_pthread_condvar_wait_timeout()
305 pmutex->holder = pthread_self(); /* other threads may have locked the mutex in the meantime */ in _dbus_pthread_condvar_wait_timeout()
/external/chromium/base/threading/
Dplatform_thread_posix.cc129 return reinterpret_cast<int64>(pthread_self()); in CurrentId()
131 return pthread_self(); in CurrentId()
175 int err = dynamic_pthread_setname_np(pthread_self(),
/external/webkit/Source/JavaScriptCore/heap/
DMachineStackMarker.cpp183 return pthread_mach_thread_np(pthread_self()); in getCurrentPlatformThread()
185 return pthread_getw32threadhandle_np(pthread_self()); in getCurrentPlatformThread()
187 return pthread_self(); in getCurrentPlatformThread()
209 …Thread* thread = new Thread(pthread_self(), getCurrentPlatformThread(), m_heap->globalData()->stac… in addCurrentThread()
225 pthread_t currentPosixThread = pthread_self(); in removeCurrentThread()
481 if (!pthread_equal(thread->posixThread, pthread_self())) in gatherConservativeRoots()
/external/chromium/third_party/libjingle/source/talk/base/
Dcriticalsection.h97 TRACK_OWNER(thread_ = pthread_self()); in Enter()
105 bool CurrentThreadIsOwner() const { return pthread_equal(thread_, pthread_self()); } in CurrentThreadIsOwner()
/external/qemu/distrib/sdl-1.2.12/src/thread/riscos/
DSDL_sysmutex.c90 this_thread = pthread_self(); in SDL_mutexP()
127 if ( pthread_self() == mutex->owner ) { in SDL_mutexV()
DSDL_systhread.c127 return((Uint32)pthread_self()); in SDL_ThreadID()
/external/qemu/distrib/sdl-1.2.12/src/thread/pthread/
DSDL_sysmutex.c91 this_thread = pthread_self(); in SDL_mutexP()
128 if ( pthread_self() == mutex->owner ) { in SDL_mutexV()
DSDL_systhread.c102 return((Uint32)pthread_self()); in SDL_ThreadID()
/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()
776 id = pthread_self(); in xmlGetThreadId()
815 return (pthread_equal(mainthread,pthread_self())); in xmlIsMainThread()
879 (pthread_self != NULL) && in xmlInitThreads()
956 mainthread = pthread_self(); in xmlOnceInit()
/external/valgrind/main/none/tests/
Dpth_blockedsig.c49 main_thread = pthread_self (); in main()
/external/valgrind/main/helgrind/tests/
Dtc22_exit_w_lock.c28 r= pthread_detach( pthread_self() ); assert(!r); in child_fn2()
/external/llvm/test/Linker/
D2011-08-22-ResolveAlias.ll16 @_ZL20__gthrw_pthread_selfv = alias weak i64 ()* @pthread_self
49 declare extern_weak i64 @pthread_self()
D2011-08-22-ResolveAlias2.ll19 @_ZL20__gthrw_pthread_selfv = alias weak i64 ()* @pthread_self
54 declare extern_weak i64 @pthread_self()
/external/webkit/Source/JavaScriptCore/wtf/mac/
DMainThreadMac.mm67 mainThreadPthread = pthread_self();
137 return pthread_equal(pthread_self(), mainThreadPthread);
/external/llvm/test/CodeGen/Thumb2/
D2010-01-06-TailDuplicateLabels.ll27 %1 = tail call %struct._opaque_pthread_t* @pthread_self() nounwind
86 declare %struct._opaque_pthread_t* @pthread_self()
/external/webkit/Tools/DumpRenderTree/pthreads/
DJavaScriptThreadingPthreads.cpp109 javaScriptThreads()->remove(pthread_self()); in runJavaScriptThread()

123