Home
last modified time | relevance | path

Searched refs:threadName (Results 1 - 25 of 42) sorted by relevance

12

/base/notification/eventhandler/interfaces/inner_api/
H A Devent_runner.h57 * @deprecated This function is deprecated, use 'Create(const std::string &threadName, ThreadMode threadMode)'.
75 * @deprecated This function is deprecated, use 'Create(const std::string &threadName, ThreadMode threadMode)'.
76 * @param threadName Thread name of the new created thread.
79 static std::shared_ptr<EventRunner> Create(const std::string &threadName) in Create() argument
81 return Create(threadName, Mode::DEFAULT, ThreadMode::NEW_THREAD); in Create()
87 * @param threadName Thread name of the new created thread.
91 static std::shared_ptr<EventRunner> Create(const std::string &threadName, ThreadMode threadMode) in Create() argument
93 return Create(threadName, Mode::DEFAULT, threadMode); in Create()
98 * Eliminate ambiguity, while calling like 'EventRunner::Create("threadName")'.
100 * @deprecated This function is deprecated, use 'Create(const char *threadName, ThreadMod
104 Create(const char *threadName) Create() argument
118 Create(const char *threadName, ThreadMode threadMode) Create() argument
129 CreateNoWait(const std::string &threadName) CreateNoWait() argument
[all...]
/base/hiviewdfx/hiview/plugins/performance/executor/
H A DThrTaskContainer.cpp26 void ThrTaskContainer::StartLoop(const std::string& threadName) in StartLoop() argument
28 std::thread startLoopThread(&ThrTaskContainer::Entry, this, threadName); in StartLoop()
62 void ThrTaskContainer::Entry(const std::string& threadName) in Entry() argument
65 prctl(PR_SET_NAME, threadName.c_str(), nullptr, nullptr, nullptr); in Entry()
H A DThrTaskContainer.h27 void StartLoop(const std::string& threadName);
30 void Entry(const std::string& threadName);
/base/hiviewdfx/faultloggerd/test/unittest/common/
H A Dcommon_cutil_test.cpp46 char threadName[NAME_BUF_LEN]; in HWTEST_F() local
48 ASSERT_TRUE(GetThreadName(threadName, sizeof(threadName))); in HWTEST_F()
49 ASSERT_TRUE(GetThreadNameByTid(gettid(), threadName, sizeof(threadName))); in HWTEST_F()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/
H A Dbacktrace_local_thread.cpp94 std::string threadName; in GetFormattedStr() local
96 ReadThreadName(tid_, threadName); in GetFormattedStr()
97 ss = "Tid:" + std::to_string(tid_) + ", Name:" + threadName + "\n"; in GetFormattedStr()
H A Dbacktrace_local.cpp44 std::string threadName; in GetThreadHead() local
48 ReadThreadName(tid, threadName); in GetThreadHead()
49 std::string threadHead = "Tid:" + std::to_string(tid) + ", Name:" + threadName + "\n"; in GetThreadHead()
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
H A Dlib_event_handler_event_runner_test.cpp65 * @param threadName name of thread we set.
67 static void CreateRunnerWithName(const std::shared_ptr<EventHandler> &handler, const std::string &threadName) in CreateRunnerWithName() argument
71 auto f = [&sameThreadName, &taskCalled, &threadName]() { in CreateRunnerWithName()
79 sameThreadName.store(threadName == thisThreadName); in CreateRunnerWithName()
187 std::string threadName("threadName"); in HWTEST_F()
188 auto handler = std::make_shared<EventHandler>(EventRunner::Create(threadName)); in HWTEST_F()
194 CreateRunnerWithName(handler, threadName); in HWTEST_F()
208 auto handler = std::make_shared<EventHandler>(EventRunner::Create("threadName")); in HWTEST_F()
214 CreateRunnerWithName(handler, "threadName"); in HWTEST_F()
[all...]
/base/hiviewdfx/hiview/test/unittest/unified_collection/client/
H A Dtrace_collector_client_test.cpp160 appCaller.threadName = "mainThread"; in HWTEST_F()
188 appCaller.threadName = "mainThread"; in HWTEST_F()
222 appCaller1.threadName = "mainThread"; in HWTEST_F()
238 appCaller2.threadName = "mainThread"; in HWTEST_F()
272 appCaller1.threadName = "mainThread"; in HWTEST_F()
306 appCaller1.threadName = "mainThread"; in HWTEST_F()
322 appCaller2.threadName = "mainThread"; in HWTEST_F()
356 appCaller1.threadName = "mainThread"; in HWTEST_F()
378 appCaller3.threadName = "mainThread"; in HWTEST_F()
411 appCaller1.threadName in HWTEST_F()
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/backtrace/include/
H A Ddfx_kernel_stack.h25 std::string threadName = ""; member
/base/hiviewdfx/faultloggerd/tools/process_dump/
H A Ddfx_stack_info_formatter.cpp101 exception["thread_name"] = process_->keyThread_->threadInfo_.threadName; in GetNativeCrashInfo()
124 thread["thread_name"] = process_->keyThread_->threadInfo_.threadName; in GetDumpInfo()
188 threadJson["thread_name"] = oneThread->threadInfo_.threadName; in AppendThreads()
H A Ddfx_thread.cpp53 ReadThreadNameByPidAndTid(threadInfo_.pid, threadInfo_.tid, threadInfo_.threadName); in InitThreadInfo()
88 std::string ss = "Thread name:" + threadInfo_.threadName + "\n"; in ToString()
H A Ddfx_thread.h37 std::string threadName = ""; member
/base/security/device_auth/deps_adapter/os_adapter/interfaces/
H A Dhc_task_thread.h48 int32_t InitHcTaskThread(HcTaskThread* thread, size_t stackSize, const char* threadName);
H A Dhc_thread.h45 int32_t InitThread(HcThread* thread, ThreadFunc func, size_t stackSize, const char* threadName);
/base/security/device_auth/deps_adapter/os_adapter/interfaces/liteos/
H A Dhc_thread.h41 int32_t InitThread(HcThread* thread, ThreadFunc func, size_t stackSize, const char* threadName);
/base/hiviewdfx/faultloggerd/frameworks/localhandler/
H A Ddfx_signal_local_handler.cpp106 GetThreadNameByTid(g_request.tid, g_request.threadName, sizeof(g_request.threadName)); in DFX_SignalLocalHandler()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/
H A Dhc_task_thread.c121 int32_t InitHcTaskThread(HcTaskThread* thread, size_t stackSize, const char* threadName) in InitHcTaskThread() argument
131 int32_t res = InitThread(&thread->thread, TaskThreadLoop, stackSize, threadName); in InitHcTaskThread()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/linux/
H A Dhc_thread.c116 int32_t InitThread(HcThread *thread, ThreadFunc func, size_t stackSize, const char *threadName) in InitThread() argument
130 if (StringSetPointer(&thread->name, threadName) != HC_TRUE) { in InitThread()
/base/security/device_auth/deps_adapter/os_adapter/impl/src/liteos/
H A Dhc_thread.c115 int32_t InitThread(HcThread *thread, ThreadFunc func, size_t stackSize, const char *threadName) in InitThread() argument
129 if (StringSetPointer(&thread->name, threadName) != HC_TRUE) { in InitThread()
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/resource/
H A Dcpu.h75 std::string threadName; member
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/client/
H A Dtrace_collector_client.h35 std::string threadName; // app thread name member
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/include/
H A Dlog_util.h30 std::string threadName; member
/base/notification/eventhandler/test/systemtest/ems_event_runner_system_test/
H A Dems_event_runner_system_test.cpp201 * @param threadName name of thread we set.
203 static void CreateRunnerWithName(const std::shared_ptr<EventHandler> &handler, const std::string &threadName) in CreateRunnerWithName() argument
207 auto f = [&sameThreadName, &taskCalled, &threadName]() { in CreateRunnerWithName()
215 sameThreadName.store(threadName == thisThreadName); in CreateRunnerWithName()
1160 std::string threadName(THREAD_NAME_TEST1); in HWTEST_F()
1161 auto handler = std::make_shared<EventHandler>(EventRunner::Create(threadName)); in HWTEST_F()
1163 CreateRunnerWithName(handler, threadName); in HWTEST_F()
1173 std::string threadName(THREAD_NAME_TEST2); in HWTEST_F()
1174 auto handler = std::make_shared<EventHandler>(EventRunner::Create(threadName)); in HWTEST_F()
1176 CreateRunnerWithName(handler, threadName); in HWTEST_F()
[all...]
/base/notification/eventhandler/frameworks/eventhandler/src/
H A Devent_runner.cpp436 inline void SetThreadName(const std::string &threadName) in SetThreadName() argument
440 if (threadName.empty()) { in SetThreadName()
445 threadName_ = threadName; in SetThreadName()
587 std::shared_ptr<EventRunner> EventRunner::Create(const std::string &threadName, Mode mode, ThreadMode threadMode) in Create() argument
589 HILOGD("threadName is %{public}s %{public}d %{public}d", threadName.c_str(), mode, threadMode); in Create()
595 innerRunner->SetThreadName(threadName); in Create()
/base/hiviewdfx/faultloggerd/interfaces/innerkits/procinfo/
H A Dprocinfo.cpp299 std::string threadName; in ReadThreadWchan() local
300 ReadThreadName(tid, threadName); in ReadThreadWchan()
301 ss = "Tid:" + std::to_string(tid) + ", Name:" + threadName + "\n"; in ReadThreadWchan()

Completed in 20 milliseconds

12