/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/include/ |
D | napi_callback_context.h | 27 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/ |
D | napi_hisysevent_querier.cpp | 43 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()
|
D | napi_hisysevent_listener.cpp | 42 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()
|
D | js_callback_manager.cpp | 77 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()
|
D | napi_hisysevent_js.cpp | 139 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/ |
D | ueventd_parameter.c | 36 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/ |
D | event_runner.cpp | 71 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()
|
D | event_handler.cpp | 253 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/ |
D | js_callback_object.cpp | 23 JSCallbackObject::JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId) in JSCallbackObject() argument 24 : env_(env), threadId_(threadId) in JSCallbackObject()
|
D | js_callback_object.h | 28 JSCallbackObject(napi_env env, napi_value callback, std::thread::id threadId);
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | cmd_executor.cpp | 107 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/ |
D | bootchart.h | 27 pthread_t threadId; member
|
D | bootchart.c | 239 …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/ |
D | signal_handler_test.cpp | 148 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/ |
D | js_utils.h | 99 static bool Equals(napi_env env, napi_value value, napi_ref copy, std::thread::id threadId);
|
D | js_utils.cpp | 145 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()
|