Home
last modified time | relevance | path

Searched refs:WatchdogTask (Results 1 - 6 of 6) sorted by relevance

/base/hiviewdfx/hicollie/frameworks/native/
H A Dwatchdog_task.h31 class WatchdogTask { class
34 WatchdogTask(std::string name, std::shared_ptr<AppExecFwk::EventHandler> handler,
36 WatchdogTask(std::string name, Task&& task, uint64_t delay, uint64_t interval, bool isOneshot);
37 WatchdogTask(std::string name, unsigned int timeout, XCollieCallback func, void *arg, unsigned int flag);
38 WatchdogTask(std::string name, unsigned int timeLimit, int countLimit);
39 WatchdogTask() in WatchdogTask() function in OHOS::HiviewDFX::WatchdogTask
56 ~WatchdogTask() {}; in ~WatchdogTask()
58 bool operator<(const WatchdogTask &obj) const in operator <()
H A Dwatchdog_task.cpp49 int64_t WatchdogTask::curId = 0;
50 WatchdogTask::WatchdogTask(std::string name, std::shared_ptr<AppExecFwk::EventHandler> handler, in WatchdogTask() function in OHOS::HiviewDFX::WatchdogTask
63 WatchdogTask::WatchdogTask(std::string name, Task&& task, uint64_t delay, uint64_t interval, bool isOneshot) in WatchdogTask() function in OHOS::HiviewDFX::WatchdogTask
74 WatchdogTask::WatchdogTask(std::string name, unsigned int timeout, XCollieCallback func, void *arg, unsigned int flag) in WatchdogTask() function in OHOS::HiviewDFX::WatchdogTask
86 WatchdogTask::WatchdogTask(std::string name, unsigned int timeLimit, int countLimit) in WatchdogTask() function in OHOS::HiviewDFX::WatchdogTask
95 void WatchdogTask
[all...]
H A Dwatchdog_inner.cpp276 WatchdogTask task("ThreadSampler", sampleTask, 0, interval, true); in StartProfileMainThread()
366 WatchdogTask task("TraceCollector", traceTask, 0, interval, true); in StartTraceProfile()
469 if (!InsertWatchdogTaskLocked(limitedName, WatchdogTask(limitedName, handler, timeOutCallback, interval))) { in AddThread()
488 InsertWatchdogTaskLocked(limitedName, WatchdogTask(limitedName, std::move(task), delay, 0, true)); in RunOneShotTask()
505 return InsertWatchdogTaskLocked(limitedName, WatchdogTask(limitedName, timeout, func, arg, flag)); in RunXCollieTask()
510 std::priority_queue<WatchdogTask> tmpQueue; in RemoveXCollieTask()
518 const WatchdogTask& task = checkerQueue_.top(); in RemoveXCollieTask()
545 InsertWatchdogTaskLocked(limitedName, WatchdogTask(limitedName, std::move(task), delay, interval, false)); in RunPeriodicalTask()
561 return InsertWatchdogTaskLocked(limitedName, WatchdogTask(limitedName, timeLimit, countLimit)); in SetTimerCountTask()
575 std::priority_queue<WatchdogTask> tmpQueu in TriggerTimerCountTask()
[all...]
H A Dwatchdog_inner.h111 int64_t InsertWatchdogTaskLocked(const std::string& name, WatchdogTask&& task);
112 uint64_t FetchNextTask(uint64_t now, WatchdogTask& task);
113 void ReInsertTaskIfNeed(WatchdogTask& task);
122 std::priority_queue<WatchdogTask> checkerQueue_; // protected by lock_
/base/hiviewdfx/hicollie/frameworks/native/test/unittest/common/
H A Dwatchdog_task_test.cpp57 WatchdogTask task("WatchdogTaskTest_001", taskFunc, 0, 0, true); in HWTEST_F()
76 WatchdogTask task("WatchdogTaskTest_002", taskFunc, 0, 0, true); in HWTEST_F()
90 WatchdogTask task("WatchdogTaskTest_003", taskFunc, 0, 0, true); in HWTEST_F()
96 WatchdogTask task1("WatchdogTaskTest_003", handler, nullptr, 5); in HWTEST_F()
109 WatchdogTask task("WatchdogTaskTest_004", 0, 1); in HWTEST_F()
H A Dwatchdog_inner_test.cpp162 WatchdogTask task(name, taskFunc, delay, interval, isOneshot); in HWTEST_F()
163 int id = WatchdogInner::GetInstance().InsertWatchdogTaskLocked(name, WatchdogTask(name, taskFunc, in HWTEST_F()
169 WatchdogTask task1; in HWTEST_F()
187 WatchdogTask task(name, taskFunc, delay, interval, isOneshot); in HWTEST_F()
188 int id = WatchdogInner::GetInstance().InsertWatchdogTaskLocked(name, WatchdogTask(name, taskFunc, in HWTEST_F()

Completed in 4 milliseconds