提交 fe958671 编写于 作者: O openharmony_ci 提交者: Gitee

!492 移除taskmanager无用代码

Merge pull request !492 from JayLeeHW/master_code_review
......@@ -24,6 +24,7 @@ TaskManager* TaskManager::GetInstance()
static TaskManager taskManager;
return &taskManager;
}
void TaskManager::Add(Task* task)
{
if (task == nullptr) {
......
......@@ -70,17 +70,18 @@ public:
*/
void ResetTaskHandlerMutex();
protected:
List<Task*> list_; /* the task list */
bool canTaskRun_;
bool isHandlerRunning_;
uint8_t idleLast_;
private:
TaskManager() : canTaskRun_(false), isHandlerRunning_(false), idleLast_(0) {}
TaskManager() : canTaskRun_(false), isHandlerRunning_(false) {}
~TaskManager() {}
static const uint16_t IDLE_MEAS_PERIOD = 500;
TaskManager(const TaskManager&) = delete;
TaskManager& operator=(const TaskManager&) = delete;
TaskManager(TaskManager&&) = delete;
TaskManager& operator=(TaskManager&&) = delete;
List<Task*> list_; /* the task list */
bool canTaskRun_;
bool isHandlerRunning_;
};
} // namespace OHOS
#endif // GRAPHIC_LITE_TASK_MANAGER_H
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册