提交 c229b8d7 编写于 作者: J jiadexiang

Description: add the task handling flag reseting function back

IssueNo:I3YA6T
Feature or Bugfix: Feature
Binary Source:No
Signed-off-by: Njiadexiang <jiadexiang@huawei.com>
上级 5ebc3d27
......@@ -79,4 +79,18 @@ void TaskManager::TaskHandler()
isHandlerRunning_ = false;
}
/**
* @brief TaskManager::ResetTaskHandlerMutex Reset the running flag.
*
* Because the rending implementation is shared between native and third-party APP under liteos-m, and for
* some exception cases (the app is destroyed unexpectedly during the task handling process), as the task
* handling process will set the flag to true for avoiding reentry of the handling process itself, and as
* TaskManager is one single instance, so must reset this flag to false for other task's normal rendring
* process, for example, native app.
*/
void TaskManager::ResetTaskHandlerMutex()
{
isHandlerRunning_ = false;
}
} // namespace OHOS
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册