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

!245 [挑单Release] JS 应用M核上在 task handling期间应用异常,强制退出时,需重置 task manager 的...

!245 [挑单Release] JS 应用M核上在 task handling期间应用异常,强制退出时,需重置 task manager 的 isHandlerRunning_ 标记,否则 native 应用无法进行渲染
Merge pull request !245 from piggyguy_jdx/enable_fatal_handling_release
......@@ -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.
先完成此消息的编辑!
想要评论请 注册