Home
last modified time | relevance | path

Searched refs:WorkerThread (Results 1 - 16 of 16) sorted by relevance

/foundation/resourceschedule/ffrt/test/ut/
H A Dworker_thread_test.cpp62 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
74 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
87 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
99 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
112 WorkerThread* wt = new WorkerThread(Qo in HWTEST_F()
[all...]
/foundation/resourceschedule/ffrt/src/eu/
H A Dcpu_manager_interface.h44 std::function<void (WorkerThread*)> WorkerLooper;
45 std::function<CPUEUTask* (WorkerThread*)> PickUpTask;
46 std::function<void (const WorkerThread*)> NotifyTaskPicked;
47 std::function<WorkerAction (const WorkerThread*)> WaitForNewAction;
48 std::function<void (WorkerThread*)> WorkerRetired;
49 std::function<void (WorkerThread*)> WorkerPrepare;
50 std::function<PollerRet (const WorkerThread*, int timeout)> TryPoll;
51 std::function<unsigned int (WorkerThread*)> StealTaskBatch;
52 std::function<CPUEUTask* (WorkerThread*)> PickUpTaskBatch;
54 std::function<bool (WorkerThread*)> IsExceedRunningThreshol
[all...]
H A Dcpuworker_manager.h76 virtual void WorkerPrepare(WorkerThread* thread) = 0;
89 void WorkerRetired(WorkerThread* thread);
91 bool IsExceedRunningThreshold(const WorkerThread* thread);
99 void NotifyTaskPicked(const WorkerThread* thread);
101 virtual CPUEUTask* PickUpTaskFromGlobalQueue(WorkerThread* thread) = 0;
102 CPUEUTask* PickUpTaskFromLocalQueue(WorkerThread* thread);
105 virtual WorkerAction WorkerIdleAction(const WorkerThread* thread) = 0;
107 void WorkerSetup(WorkerThread* thread);
108 PollerRet TryPoll(const WorkerThread* thread, int timeout = -1);
109 unsigned int StealTaskBatch(WorkerThread* threa
[all...]
H A Dworker_thread.cpp32 WorkerThread::WorkerThread(const QoS& qos) : exited(false), idle(false), tid(-1), qos(qos) in WorkerThread() function in ffrt::WorkerThread
46 void WorkerThread::NativeConfig() in NativeConfig()
53 void WorkerThread::WorkerSetup(WorkerThread* wthread) in WorkerSetup()
81 void SetThreadAttr(WorkerThread* thread, const QoS& qos) in SetThreadAttr()
H A Dscpuworker_manager.h25 WorkerAction WorkerIdleAction(const WorkerThread* thread) override;
26 void WorkerPrepare(WorkerThread* thread) override;
28 CPUEUTask* PickUpTaskFromGlobalQueue(WorkerThread* thread) override;
29 CPUEUTask* PickUpTaskBatch(WorkerThread* thread) override;
H A Dscpuworker_manager.cpp103 WorkerAction SCPUWorkerManager::WorkerIdleAction(const WorkerThread* thread) in WorkerIdleAction()
153 CPUEUTask* SCPUWorkerManager::PickUpTaskFromGlobalQueue(WorkerThread* thread) in PickUpTaskFromGlobalQueue()
165 CPUEUTask* SCPUWorkerManager::PickUpTaskBatch(WorkerThread* thread) in PickUpTaskBatch()
204 void SCPUWorkerManager::WorkerPrepare(WorkerThread* thread) in WorkerPrepare()
221 WorkerThread* CPUManagerStrategy::CreateCPUWorker(const QoS& qos, void* manager) in CreateCPUWorker()
233 [pIns] (WorkerThread* thread) { return pIns->PickUpTaskFromGlobalQueue(thread); }, in CreateCPUWorker()
234 [pIns] (const WorkerThread* thread) { pIns->NotifyTaskPicked(thread); }, in CreateCPUWorker()
235 [pIns] (const WorkerThread* thread) { return pIns->WorkerIdleAction(thread); }, in CreateCPUWorker()
236 [pIns] (WorkerThread* thread) { pIns->WorkerRetired(thread); }, in CreateCPUWorker()
237 [pIns] (WorkerThread* threa in CreateCPUWorker()
[all...]
H A Dcpuworker_manager.cpp61 auto uniqueWorker = std::unique_ptr<WorkerThread>(worker); in IncWorker()
93 CPUEUTask* CPUWorkerManager::PickUpTaskFromLocalQueue(WorkerThread* thread) in PickUpTaskFromLocalQueue()
104 unsigned int CPUWorkerManager::StealTaskBatch(WorkerThread* thread) in StealTaskBatch()
116 std::unordered_map<WorkerThread*, std::unique_ptr<WorkerThread>>::iterator iter = in StealTaskBatch()
133 PollerRet CPUWorkerManager::TryPoll(const WorkerThread* thread, int timeout) in TryPoll()
162 void CPUWorkerManager::NotifyTaskPicked(const WorkerThread* thread) in NotifyTaskPicked()
167 void CPUWorkerManager::WorkerRetired(WorkerThread* thread) in WorkerRetired()
247 bool CPUWorkerManager::IsExceedRunningThreshold(const WorkerThread* thread) in IsExceedRunningThreshold()
H A Dcpu_worker.h29 class CPUWorker : public WorkerThread {
31 CPUWorker(const QoS& qos, CpuWorkerOps&& ops) : WorkerThread(qos), ops(ops) in CPUWorker()
50 static void WorkerLooperDefault(WorkerThread* p);
H A Dworker_thread.h42 class WorkerThread { class
49 explicit WorkerThread(const QoS& qos);
51 virtual ~WorkerThread() in ~WorkerThread()
55 FFRT_LOGW("WorkerThread enter destruction but not exited"); in ~WorkerThread()
72 FFRT_LOGW("WorkerThread enter destruction"); in ~WorkerThread()
191 void WorkerSetup(WorkerThread* wthread);
211 void SetThreadAttr(WorkerThread* thread, const QoS& qos);
H A Dworker_manager.h38 std::unordered_map<WorkerThread*, std::unique_ptr<WorkerThread>> threads;
H A Dqos_interface.h208 typedef void (*Func_priority)(unsigned char priority, ffrt::WorkerThread* thread);
H A Dcpu_worker.cpp221 void CPUWorker::WorkerLooperDefault(WorkerThread* p) in WorkerLooperDefault()
/foundation/resourceschedule/ffrt/test/ut/testcase/
H A Dut_thread.cpp78 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
85 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
93 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
100 WorkerThread* wt = new WorkerThread(QoS(6)); in HWTEST_F()
108 WorkerThread* wt = new WorkerThread(Qo in HWTEST_F()
[all...]
H A Dut_worker_manager.cpp132 WorkerThread* worker = CPUManagerStrategy::CreateCPUWorker(QoS(2), manager); in HWTEST_F()
160 WorkerThread* worker = new CPUWorker(QoS(2), std::move(ops), manager); in HWTEST_F()
/foundation/resourceschedule/ffrt/src/util/
H A Dworker_monitor.h86 void RecordTimeoutFunctionInfo(const CoWorkerInfo& coWorkerInfo, WorkerThread* worker,
97 std::map<WorkerThread*, TaskTimeoutInfo> workerStatus_;
H A Dworker_monitor.cpp182 WorkerThread* worker = thread.first; in CheckWorkerStatus()
200 void WorkerMonitor::RecordTimeoutFunctionInfo(const CoWorkerInfo& coWorkerInfo, WorkerThread* worker, in RecordTimeoutFunctionInfo()

Completed in 7 milliseconds