Home
last modified time | relevance | path

Searched refs:threadId (Results 1 – 16 of 16) sorted by relevance

/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/include/
Dnapi_callback_context.h27 using CALLBACK_FUNC = std::function<void(const napi_env, const napi_ref, pid_t threadId)>;
28 using RELEASE_FUNC = std::function<void(pid_t threadId)>;
34 pid_t threadId; member
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_querier.cpp43 if (callbackContext->threadId == syscall(SYS_gettid)) { in ~NapiHiSysEventQuerier()
53 [this, sysEvents, seq] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnQuery() argument
54 if (threadId != syscall(SYS_gettid)) { in OnQuery()
76 [this, reason, total, seq] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnComplete() argument
77 if (threadId != syscall(SYS_gettid)) { in OnComplete()
96 }, [this] (pid_t threadId) { in OnComplete() argument
97 if (threadId != syscall(SYS_gettid)) { in OnComplete()
Dnapi_hisysevent_listener.cpp42 if (callbackContext->threadId == syscall(SYS_gettid)) { in ~NapiHiSysEventListener()
52 …main, eventName, eventType, eventDetail] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnEvent() argument
53 if (threadId != syscall(SYS_gettid)) { in OnEvent()
76 [this] (const napi_env env, const napi_ref ref, pid_t threadId) { in OnServiceDied() argument
77 if (threadId != syscall(SYS_gettid)) { in OnServiceDied()
Djs_callback_manager.cpp77 context->callback(context->env, context->ref, context->threadId); in RunCallback()
82 context->release(context->threadId); in RunCallback()
96 jsCallbacks.emplace(std::make_tuple(context, callback, [this, release] (pid_t threadId) { in Add() argument
102 release(threadId); in Add()
Dnapi_hisysevent_js.cpp139 callbackContext->threadId = syscall(SYS_gettid); in AddWatcher()
148 listeners[callbackContext->ref] = std::make_pair(callbackContext->threadId, listener); in AddWatcher()
219 callbackContext->threadId = syscall(SYS_gettid); in Query()
235 queriers[callbackContext->ref] = std::make_pair(callbackContext->threadId, querier); in Query()
/base/startup/init/ueventd/standard/
Dueventd_parameter.c36 pthread_t threadId; member
47 .threadId = 0
111 if (parameterCtrl->threadId == 0) { in AddParameter()
112 (void)pthread_create(&(parameterCtrl->threadId), NULL, ThreadRun, (void *)parameterCtrl); in AddParameter()
/base/notification/eventhandler/frameworks/eventhandler/src/
Devent_runner.cpp71 auto threadId = std::this_thread::get_id(); in ReclaimCurrentThread() local
72 HILOGD("Reclaim: Thread id: %{public}zu", CalculateHashCode(threadId)); in ReclaimCurrentThread()
82 reclaims_.emplace_back(threadId); in ReclaimCurrentThread()
105 auto threadId = thread->get_id(); in Deposit() local
106 HILOGD("Deposit: New thread id: %{public}zu", CalculateHashCode(threadId)); in Deposit()
114 depositMap_.emplace(threadId, in Deposit()
170 auto threadId = it->first; in DoReclaimLocked() local
177 size_t hashThreadId = CalculateHashCode(threadId); in DoReclaimLocked()
199 auto threadId = reclaims_.back(); in Run() local
201 DoReclaimLocked(lock, depositMap_.find(threadId), false); in Run()
Devent_handler.cpp253 int64_t threadId = gettid(); in DeliveryTimeAction() local
254 std::string threadIdCharacter = std::to_string(threadId); in DeliveryTimeAction()
281 int64_t threadId = gettid(); in DistributeTimeAction() local
282 std::string threadIdCharacter = std::to_string(threadId); in DistributeTimeAction()
/base/inputmethod/imf/frameworks/js/napi/common/
Djs_callback_object.cpp23 JSCallbackObject::JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId) in JSCallbackObject() argument
24 : env_(env), threadId_(threadId) in JSCallbackObject()
Djs_callback_object.h28 JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId);
/base/hiviewdfx/hilog/services/hilogd/
Dcmd_executor.cpp107 for (auto threadId : m_finishedClients) { in CleanFinishedClients() local
109 [&threadId](const std::unique_ptr<ClientThread>& ct) { in CleanFinishedClients()
110 return ct->m_clientThread.get_id() == threadId; in CleanFinishedClients()
/base/startup/init/services/modules/bootchart/
Dbootchart.h27 pthread_t threadId; member
Dbootchart.c239 …ret = pthread_create(&(g_bootchartCtrl->threadId), NULL, BootchartThreadMain, (void *)g_bootchartC… in DoBootchartStart()
260 pthread_join(g_bootchartCtrl->threadId, NULL); in DoBootchartStop()
/base/hiviewdfx/faultloggerd/test/unittest/signal_handler/
Dsignal_handler_test.cpp148 int TestThread(int threadId, int sig) in TestThread() argument
150 std::string subThreadName = "SubTestThread" + to_string(threadId); in TestThread()
154 if (threadId == cashThreadId) { in TestThread()
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_utils.h99 static bool Equals(napi_env env, napi_value value, napi_ref copy, std::thread::id threadId);
Djs_utils.cpp145 bool JsUtils::Equals(napi_env env, napi_value value, napi_ref copy, std::thread::id threadId) in Equals() argument
151 if (threadId != std::this_thread::get_id()) { in Equals()