Home
last modified time | relevance | path

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

1234

/aosp12/frameworks/wilhelm/src/android/
H A DCallbackProtector.cpp67 mCallbackThread = pthread_self(); in enterCb()
75 (void *) pthread_self(), gettid(), in enterCb()
115 mRequesterThread = pthread_self(); in requestCbExitAndWait()
123 (void *) pthread_self(), gettid()); in requestCbExitAndWait()
136 mRequesterThread = pthread_self(); in requestCbExit()
144 (void *) pthread_self(), gettid()); in requestCbExit()
/aosp12/frameworks/wilhelm/src/
H A Dlocks.cpp82 pthread_t me = pthread_self(); in object_lock_exclusive_()
102 pthread_t me = pthread_self(); in object_lock_exclusive_()
105 if (pthread_equal(pthread_self(), owner)) { in object_lock_exclusive_()
116 thiz->mOwner = pthread_self(); in object_lock_exclusive_()
137 assert(pthread_equal(pthread_self(), thiz->mOwner)); in object_unlock_exclusive_()
170 assert(pthread_equal(pthread_self(), thiz->mOwner)); in object_unlock_exclusive_attributes_()
291 assert(pthread_equal(pthread_self(), thiz->mOwner)); in object_cond_wait_()
302 thiz->mOwner = pthread_self(); in object_cond_wait_()
/aosp12/frameworks/wilhelm/src/itf/
H A DIThreadSync.cpp30 if (!pthread_equal(thiz->mOwner, pthread_self())) { in IThreadSync_EnterCriticalSection()
40 thiz->mOwner = pthread_self(); in IThreadSync_EnterCriticalSection()
56 if (!thiz->mInCriticalSection || !pthread_equal(thiz->mOwner, pthread_self())) { in IThreadSync_ExitCriticalSection()
/aosp12/frameworks/base/libs/hwui/renderstate/
H A DRenderState.cpp24 mThreadId = pthread_self(); in RenderState()
34 if (pthread_equal(mThreadId, pthread_self())) { in postDecStrong()
/aosp12/hardware/interfaces/tests/libhwbinder/1.0/default/
H A DScheduleTest.cpp21 ASSERT(!pthread_getschedparam(pthread_self(), &policy, &param)); in threadPri()
32 ASSERT(!pthread_getschedparam(pthread_self(), &policy, &param)); in threadDump()
/aosp12/bionic/libc/bionic/
H A Dpthread_setname_np.cpp60 if (t == pthread_self()) { in pthread_getname_np()
93 if (t == pthread_self()) { in pthread_setname_np()
H A Dpthread_self.cpp31 pthread_t pthread_self() { in pthread_self() function
H A Dpthread_join.cpp39 if (t == pthread_self()) { in pthread_join()
/aosp12/system/extras/simpleperf/demo/CppApi/app/src/main/cpp/
H A Dnative-lib.cpp33 pthread_setname_np(pthread_self(), "ProfileThread"); in ProfileThreadFunc()
62 pthread_setname_np(pthread_self(), "BusyThread"); in BusyThreadFunc()
/aosp12/frameworks/av/services/oboeservice/
H A DAAudioThread.cpp41 ALOGE_IF(pthread_equal(pthread_self(), mThread), in ~AAudioThread()
97 if (pthread_equal(pthread_self(), mThread)) { in stop()
/aosp12/packages/services/BuiltInPrintService/jni/plugins/
H A Dplugin_pcl.c162 param->send_tid = pthread_self(); in _start_thread()
173 if ((result == ERROR) && (param->send_tid != pthread_self())) { in _start_thread()
179 param->send_tid = pthread_self(); in _start_thread()
202 if (!pthread_equal(priv->send_tid, pthread_self())) { in _stop_thread()
209 priv->send_tid = pthread_self(); in _stop_thread()
234 priv->send_tid = pthread_self(); in _start_job()
/aosp12/bionic/tests/
H A Dpthread_test.cpp314 ASSERT_EQ(EDEADLK, pthread_join(pthread_self(), nullptr)); in TEST()
323 data.main_thread = pthread_self(); in main()
527 ASSERT_EQ(0, pthread_kill(pthread_self(), 0)); in TEST()
531 ASSERT_EQ(EINVAL, pthread_kill(pthread_self(), -1)); in TEST()
539 ASSERT_EQ(0, pthread_kill(pthread_self(), SIGALRM)); in pthread_kill__in_signal_handler_helper()
545 ASSERT_EQ(0, pthread_kill(pthread_self(), SIGALRM)); in TEST()
724 pthread_getattr_np(pthread_self(), &attributes); in GetActualGuardSizeFn()
739 pthread_getattr_np(pthread_self(), &attributes); in GetActualStackSizeFn()
1818 ASSERT_EQ(0, pthread_getattr_np(pthread_self(), &attr)); in getstack_signal_handler()
1879 pthread_getattr_np(pthread_self(), &attributes); in pthread_attr_getstack_18908062_helper()
[all …]
/aosp12/frameworks/native/services/surfaceflinger/Scheduler/
H A DTimer.cpp138 if (pthread_setschedparam(pthread_self(), SCHED_FIFO, &param) != 0) { in dispatch()
142 if (pthread_setname_np(pthread_self(), "TimerDispatch")) { in dispatch()
/aosp12/art/sigchainlib/
H A Dsigchain_test.cc78 pthread_sigqueue(pthread_self(), SIGSEGV, value); in RaiseHandled()
84 pthread_sigqueue(pthread_self(), SIGSEGV, value); in RaiseUnhandled()
/aosp12/system/chre/chpp/platform/linux/include/chpp/platform/
H A Dplatform_log.h41 pthread_getname_np(pthread_self(), name, 16); \
/aosp12/system/libhwbinder/
H A DIPCThreadState.cpp539 …LOG_THREADPOOL("**** THREAD %p (PID %d) IS JOINING THE THREAD POOL\n", (void*)pthread_self(), getp… in joinThreadPool()
563 (void*)pthread_self(), getpid(), result); in joinThreadPool()
619 alog << "BC_TRANSACTION thr " << (void*)pthread_self() << " / hand " in transact()
666 alog << "BR_REPLY thr " << (void*)pthread_self() << " / hand " in transact()
1170 alog << "BR_TRANSACTION thr " << (void*)pthread_self() in executeCommand()
1241 alog << "BC_REPLY thr " << (void*)pthread_self() << " / obj " in executeCommand()
/aosp12/system/bt/osi/src/
H A Dreactor.cc205 pthread_equal(pthread_self(), reactor->run_thread)) { in reactor_unregister()
235 reactor->run_thread = pthread_self(); in run_reactor()
/aosp12/system/netd/libnetdutils/include/netdutils/
H A DThreadUtil.h44 if (int ret = pthread_setname_np(pthread_self(), name.c_str()); ret != 0) { in setThreadName()
/aosp12/frameworks/native/libs/renderengine/skia/debug/
H A DCommonPool.cpp43 auto self = pthread_self(); in CommonPool()
/aosp12/packages/services/BuiltInPrintService/jni/lib/
H A Dlib_wprint.c504 if (!pthread_equal(_job_status_tid, pthread_self()) && (jq && jq->status_ifc)) { in _stop_status_thread()
509 _job_status_tid = pthread_self(); in _stop_status_thread()
682 if ((result == ERROR) && (_job_status_tid != pthread_self())) { in _start_status_thread()
688 _job_status_tid = pthread_self(); in _start_status_thread()
910 _job_status_tid = pthread_self(); in _job_thread()
1324 _job_tid = pthread_self(); in _start_thread()
1335 if ((result == ERROR) && (_job_tid != pthread_self())) { in _start_thread()
1341 _job_tid = pthread_self(); in _start_thread()
1361 if (!pthread_equal(_job_tid, pthread_self())) { in _stop_thread()
1363 _job_tid = pthread_self(); in _stop_thread()
/aosp12/frameworks/native/libs/binder/
H A DIPCThreadState.cpp619 …LOG_THREADPOOL("**** THREAD %p (PID %d) IS JOINING THE THREAD POOL\n", (void*)pthread_self(), getp… in joinThreadPool()
643 (void*)pthread_self(), getpid(), result); in joinThreadPool()
697 alog << "BC_TRANSACTION thr " << (void*)pthread_self() << " / hand " in transact()
745 alog << "BR_REPLY thr " << (void*)pthread_self() << " / hand " in transact()
1256 alog << "BR_TRANSACTION thr " << (void*)pthread_self() in executeCommand()
1322 alog << "BC_REPLY thr " << (void*)pthread_self() << " / obj " in executeCommand()
/aosp12/system/chre/chpp/test/
H A Dapp_test_base.cpp38 pthread_setname_np(pthread_self(), context->linkParams.workThreadName); in workThread()
/aosp12/system/netd/libnetdutils/
H A DThreadUtilTest.cpp29 if (const int ret = pthread_getname_np(pthread_self(), name, sizeof(name)); ret != 0) { in getThreadName()
/aosp12/system/libhwbinder/vts/performance/
H A DLatency.cpp84 REQUIRE(!pthread_getschedparam(pthread_self(), &policy, &param)); in threadGetPri()
97 REQUIRE(!pthread_getschedparam(pthread_self(), &policy, &param)); in threadDumpPri()
/aosp12/frameworks/base/libs/hwui/thread/
H A DCommonPool.cpp42 auto self = pthread_self(); in CommonPool()

1234