/base/notification/eventhandler/interfaces/inner_api/ |
H A D | event_runner.h | 57 * @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 D | ThrTaskContainer.cpp | 26 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 D | ThrTaskContainer.h | 27 void StartLoop(const std::string& threadName); 30 void Entry(const std::string& threadName);
|
/base/hiviewdfx/faultloggerd/test/unittest/common/ |
H A D | common_cutil_test.cpp | 46 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 D | backtrace_local_thread.cpp | 94 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 D | backtrace_local.cpp | 44 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 D | lib_event_handler_event_runner_test.cpp | 65 * @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 D | trace_collector_client_test.cpp | 160 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 D | dfx_kernel_stack.h | 25 std::string threadName = "";
member
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_stack_info_formatter.cpp | 101 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 D | dfx_thread.cpp | 53 ReadThreadNameByPidAndTid(threadInfo_.pid, threadInfo_.tid, threadInfo_.threadName); in InitThreadInfo() 88 std::string ss = "Thread name:" + threadInfo_.threadName + "\n"; in ToString()
|
H A D | dfx_thread.h | 37 std::string threadName = ""; member
|
/base/security/device_auth/deps_adapter/os_adapter/interfaces/ |
H A D | hc_task_thread.h | 48 int32_t InitHcTaskThread(HcTaskThread* thread, size_t stackSize, const char* threadName);
|
H A D | hc_thread.h | 45 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 D | hc_thread.h | 41 int32_t InitThread(HcThread* thread, ThreadFunc func, size_t stackSize, const char* threadName);
|
/base/hiviewdfx/faultloggerd/frameworks/localhandler/ |
H A D | dfx_signal_local_handler.cpp | 106 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 D | hc_task_thread.c | 121 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 D | hc_thread.c | 116 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 D | hc_thread.c | 115 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 D | cpu.h | 75 std::string threadName;
member
|
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/client/ |
H A D | trace_collector_client.h | 35 std::string threadName; // app thread name member
|
/base/hiviewdfx/hiview/utility/smart_parser/feature_analysis/include/ |
H A D | log_util.h | 30 std::string threadName; member
|
/base/notification/eventhandler/test/systemtest/ems_event_runner_system_test/ |
H A D | ems_event_runner_system_test.cpp | 201 * @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 D | event_runner.cpp | 436 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 D | procinfo.cpp | 299 std::string threadName; in ReadThreadWchan() local 300 ReadThreadName(tid, threadName); in ReadThreadWchan() 301 ss = "Tid:" + std::to_string(tid) + ", Name:" + threadName + "\n"; in ReadThreadWchan()
|