/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_thread_pool_unittest.cpp | 56 std::string threadName = "threadName1"; in HWTEST_F() local 58 auto ipcThread = new (std::nothrow) IPCWorkThread(threadName); in HWTEST_F() 61 threadPool.threads_[threadName] = ipcThread; in HWTEST_F() 63 auto ret = threadPool.RemoveThread(threadName); in HWTEST_F() 78 std::string threadName = "threadName2"; in HWTEST_F() local 80 auto ipcThread = new (std::nothrow) IPCWorkThread(threadName); in HWTEST_F() 82 threadPool.threads_[threadName] = ipcThread; in HWTEST_F() 84 auto ret = threadPool.RemoveThread(threadName); in HWTEST_F() 98 std::string threadName = "threadName3"; in HWTEST_F() local 100 auto ipcThread = new (std::nothrow) IPCWorkThread(threadName); in HWTEST_F() 118 std::string threadName = "threadName4"; HWTEST_F() local 136 std::string threadName = "threadName5"; HWTEST_F() local [all...] |
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | task_scheduler_test.cpp | 38 std::string threadName = "threadName";
in HWTEST_F() local 40 TaskScheduler* taskScheduler = new(std::nothrow) TaskScheduler(threadName);
in HWTEST_F() 55 std::string threadName = "threadName";
in HWTEST_F() local 56 std::shared_ptr<TaskScheduler> taskScheduler = std::make_shared<TaskScheduler>(threadName);
in HWTEST_F() 68 std::string threadName = "threadName";
in HWTEST_F() local 69 std::shared_ptr<TaskScheduler> taskScheduler = std::make_shared<TaskScheduler>(threadName);
in HWTEST_F() 88 std::string threadName in HWTEST_F() local 107 std::string threadName = "threadName"; HWTEST_F() local 129 std::string threadName = "threadName"; HWTEST_F() local 137 std::string threadName = "threadName"; HWTEST_F() local [all...] |
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/task_manager/ |
H A D | thread_pool.cpp | 64 auto threadName = threadNamePrefix + std::to_string(i); in Initialize() local 65 workers_.emplace_back(threadName, [this, threadName]() { WorkerLoop(threadName); }); in Initialize() 71 void ThreadPool::WorkerLoop(const std::string& threadName) in WorkerLoop() argument 73 DP_DEBUG_LOG("(%s) entered.", threadName.c_str()); in WorkerLoop() 75 DP_DEBUG_LOG("(%s) task excute start entered.", threadName.c_str()); in WorkerLoop() 78 DP_DEBUG_LOG("(%s) task excuting entered.", threadName.c_str()); in WorkerLoop() 84 DP_DEBUG_LOG("(%s) exited.", threadName.c_str()); in WorkerLoop()
|
H A D | thread_utils.cpp | 28 auto threadName = name.size() > threadNameMaxSize ? name.substr(0, threadNameMaxSize).c_str() : name; in SetThreadName() local 32 int ret = pthread_setname_np(tid, threadName.c_str()); in SetThreadName() 33 DP_DEBUG_LOG("threadId: %ld, threadName: %s, pthread_setname_np ret = %{public}d.", in SetThreadName() 34 static_cast<long>(pthread_gettid_np(tid)), threadName.c_str(), ret); in SetThreadName()
|
/foundation/communication/ipc/ipc/native/src/core/source/ |
H A D | ipc_thread_pool.cpp | 90 std::string threadName = MakeThreadName(proto, threadIndex); in SpawnThread() local 91 ZLOGD(LOG_LABEL, "name:%{public}s", threadName.c_str()); in SpawnThread() 93 if (threads_.find(threadName) == threads_.end()) { in SpawnThread() 94 sptr<IPCWorkThread> newThread = sptr<IPCWorkThread>::MakeSptr(threadName); in SpawnThread() 99 threads_[threadName] = newThread; in SpawnThread() 121 bool IPCWorkThreadPool::RemoveThread(const std::string &threadName) in RemoveThread() argument 124 auto it = threads_.find(threadName); in RemoveThread()
|
H A D | ipc_workthread.cpp | 49 IPCWorkThread::IPCWorkThread(std::string threadName) : threadName_(std::move(threadName)) {} in IPCWorkThread() argument 118 std::string threadName = basicName + "_" + std::to_string(syscall(SYS_gettid)); in ThreadHandler() local 119 int32_t ret = prctl(PR_SET_NAME, threadName.c_str()); in ThreadHandler() 121 ZLOGE(LOG_LABEL, "set thread name:%{public}s fail, ret:%{public}d", threadName.c_str(), ret); in ThreadHandler() 124 param->proto, param->policy, threadName.c_str(), ProcessSkeleton::ConvertAddr(invoker)); in ThreadHandler() 126 IPCThreadSkeleton::SaveThreadName(threadName); in ThreadHandler() 135 param->proto, param->policy, threadName.c_str(), ProcessSkeleton::ConvertAddr(invoker)); in ThreadHandler()
|
/foundation/communication/wifi/wifi/utils/src/ |
H A D | wifi_event_handler.cpp | 37 WifiEventHandlerImpl(const std::string &threadName, const Callback &timeOutFunc = nullptr) in WifiEventHandlerImpl() argument 41 pthread_setname_np(mWorkerThread.native_handle(), threadName.c_str()); in WifiEventHandlerImpl() 107 WifiEventHandlerImpl(const std::string &threadName, const Callback &timeOutFunc = nullptr) in WifiEventHandlerImpl() argument 115 eventQueue = std::make_shared<ffrt::queue>(threadName.c_str()); in WifiEventHandlerImpl() 116 WIFI_LOGI("WifiEventHandlerImpl: Create a new eventQueue, threadName:%{public}s", threadName.c_str()); in WifiEventHandlerImpl() 118 eventQueue = std::make_shared<ffrt::queue>(threadName.c_str(), in WifiEventHandlerImpl() 121 "threadName:%{public}s", threadName.c_str()); in WifiEventHandlerImpl() 208 WifiEventHandlerImpl(const std::string &threadName, cons argument 267 WifiEventHandler(const std::string &threadName, const Callback &timeOutFunc) WifiEventHandler() argument [all...] |
/foundation/multimedia/camera_framework/services/deferred_processing_service/src/base/timer/core/ |
H A D | timer_core.cpp | 62 const std::string threadName = "TimerCore"; in Initialize() local 63 worker_ = std::thread([this, threadName]() { TimerLoop(threadName); }); in Initialize() 64 SetThreadName(worker_.native_handle(), threadName); in Initialize() 115 void TimerCore::TimerLoop(const std::string& threadName) in TimerLoop() argument 117 DP_DEBUG_LOG("(%s) entered.", threadName.c_str()); in TimerLoop() 132 DP_DEBUG_LOG("(%s) exited.", threadName.c_str()); in TimerLoop()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler/ |
H A D | event_runner.h | 46 * @param threadName Thread name of the new created thread. 49 static std::shared_ptr<EventRunner> Create(const std::string &threadName); 53 * Eliminate ambiguity, while calling like 'EventRunner::Create("threadName")'. 55 * @param threadName Thread name of the new created thread. 58 static inline std::shared_ptr<EventRunner> Create(const char *threadName) in Create() argument 60 return Create((threadName != nullptr) ? std::string(threadName) : std::string()); in Create()
|
/foundation/communication/wifi/wifi/base/shared_util/ |
H A D | wifi_watchdog_utils.cpp | 53 bool WifiWatchDogUtils::ResetProcess(bool usingHiviewDfx, const std::string &threadName, bool notResetProcess)
in ResetProcess() argument 56 ReportResetEvent(threadName);
in ResetProcess() 120 bool WifiWatchDogUtils::ReportResetEvent(const std::string &threadName)
in ReportResetEvent() argument 122 WIFI_LOGI("ReportResetEvent enter for threadName:%{public}s", threadName.c_str());
in ReportResetEvent()
|
H A D | wifi_watchdog_utils.h | 29 bool ResetProcess(bool usingHiviewDfx, const std::string &threadName, bool notResetProcess = false);
34 bool ReportResetEvent(const std::string &threadName);
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | task_runner_adapter_factory.cpp | 25 RefPtr<TaskRunnerAdapter> TaskRunnerAdapterFactory::Create(bool useCurrentEventRunner, const std::string& threadName) in Create() argument 28 taskRunnerAdapterImpl->Initialize(useCurrentEventRunner, threadName); in Create()
|
H A D | task_runner_adapter_factory.h | 24 static RefPtr<TaskRunnerAdapter> Create(bool useCurrentEventRunner, const std::string& threadName);
|
H A D | task_executor_impl.cpp | 306 TaskTypeToString(from), itFrom->second.tid, itFrom->second.threadName.c_str(), TaskTypeToString(to), in DumpDeadSyncTask() 307 itTo->second.tid, itTo->second.threadName.c_str()); in DumpDeadSyncTask() 315 const char* threadName = threadNameBuf; in FillTaskTypeTable() local 319 threadName = "unknown"; in FillTaskTypeTable() 323 threadName = "unknown"; in FillTaskTypeTable() 334 .threadName = threadName, in FillTaskTypeTable()
|
/foundation/graphic/graphic_2d/rosen/modules/composer/vsync/include/ |
H A D | vsync_system_ability_listener.h | 25 VSyncSystemAbilityListener(const std::string& threadName, const std::string& uid, const std::string& pid, in VSyncSystemAbilityListener() argument 26 const std::string& tid) : threadName_(threadName), uid_(uid), pid_(pid), tid_(tid) {} in VSyncSystemAbilityListener()
|
/foundation/ai/intelligent_voice_framework/utils/ |
H A D | task_executor.cpp | 23 TaskExecutor::TaskExecutor(const std::string &threadName, uint32_t capacity) : threadName_(threadName) in TaskExecutor() argument
|
/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_thread.cpp | 39 DhcpThreadImpl(const std::string &threadName)
in DhcpThreadImpl() argument 46 eventQueue = std::make_shared<ffrt::queue>(threadName.c_str());
in DhcpThreadImpl() 47 DHCP_LOGI("DhcpThreadImpl: Create a new eventQueue, threadName:%{public}s", threadName.c_str());
in DhcpThreadImpl() 130 DhcpThreadImpl(const std::string &threadName)
in DhcpThreadImpl() argument 134 pthread_setname_np(mWorkerThread.native_handle(), threadName.c_str());
in DhcpThreadImpl() 199 DhcpThread::DhcpThread(const std::string &threadName)
in DhcpThread() argument 200 :ptr_(new DhcpThreadImpl(threadName))
in DhcpThread()
|
/foundation/communication/nfc/services/src/utils/ |
H A D | nfc_watch_dog.cpp | 22 NfcWatchDog::NfcWatchDog(const std::string& threadName, int timeout, std::weak_ptr<NCI::INciNfccInterface> nfccProxy)
in NfcWatchDog() argument 23 : threadName_(threadName), timeout_(timeout), canceled_(false), thread_(nullptr), nciNfccProxy_(nfccProxy)
in NfcWatchDog()
|
/foundation/communication/netmanager_base/services/netpolicymanager/src/core/ |
H A D | net_policy_core.cpp | 69 std::string threadName = "NetPolicyInit"; in Init() local 70 pthread_setname_np(t.native_handle(), threadName.c_str()); in Init() 119 std::string threadName = "PolicyEvent"; in SubscribeCommonEvent() local 120 pthread_setname_np(t.native_handle(), threadName.c_str()); in SubscribeCommonEvent()
|
/foundation/resourceschedule/ffrt/src/eu/ |
H A D | worker_thread.cpp | 57 std::string threadName = std::string(WORKER_THREAD_NAME_PREFIX) + qosStr + in WorkerSetup() local 60 FFRT_LOGE("ffrt threadName qos[%d] index[%d]", qos(), threadIndex[qos()]); in WorkerSetup() 62 pthread_setname_np(wthread->GetThread(), threadName.c_str()); in WorkerSetup()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/memory/ |
H A D | rs_memory_manager.cpp | 351 char threadName[16]; // thread name is restricted to 16 bytes in DumpDrawingCpuMemory() local 352 auto result = pthread_getname_np(pthread_self(), threadName, sizeof(threadName)); in DumpDrawingCpuMemory() 354 cpuInfo = cpuInfo + ", threadName: " + threadName; in DumpDrawingCpuMemory() 437 char threadName[16]; // thread name is restricted to 16 bytes in DumpDrawingGpuMemory() local 438 auto result = pthread_getname_np(pthread_self(), threadName, sizeof(threadName)); in DumpDrawingGpuMemory() 440 gpuInfo = gpuInfo + ", threadName: " + threadName; in DumpDrawingGpuMemory() [all...] |
/foundation/window/window_manager/window_scene/common/src/ |
H A D | task_scheduler.cpp | 21 TaskScheduler::TaskScheduler(const std::string& threadName) in TaskScheduler() argument 23 auto runner = AppExecFwk::EventRunner::Create(threadName); in TaskScheduler()
|
/foundation/communication/netmanager_base/services/netconnmanager/src/ |
H A D | probe_thread.cpp | 76 std::string threadName = "netDetectThread"; in Start() local 77 pthread_setname_np(thread_.native_handle(), threadName.c_str()); in Start()
|
/foundation/graphic/graphic_2d/rosen/modules/platform/eventhandler_impl/ |
H A D | event_handler.cpp | 253 std::string threadName = eventRunner_->GetRunnerThreadName(); in DeliveryTimeAction() local 260 std::string handOutTag = "threadId: " + threadIdCharacter + "," + "threadName: " + threadName + "," + in DeliveryTimeAction() 281 std::string threadName = eventRunner_->GetRunnerThreadName(); in DistributeTimeAction() local 289 std::string executeTag = "threadId: " + threadIdCharacter + "," + "threadName: " + threadName + "," + in DistributeTimeAction()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_generate_worker.cpp | 51 std::string threadName;
in Init() local 55 threadName = THREAD_NAME_FOREGROUND;
in Init() 58 threadName = THREAD_NAME_BACKGROUND;
in Init() 69 pthread_setname_np(thread.native_handle(), threadName.c_str());
in Init()
|