未验证 提交 3a73f958 编写于 作者: O openharmony_ci 提交者: Gitee

!395 fix: system run loop in liteos

Merge pull request !395 from 熊磊/cherry-pick-1646827167
......@@ -80,5 +80,13 @@ void SystemConfig(void)
void SystemRun(void)
{
#ifndef __LITEOS__
LE_RunLoop(LE_GetDefaultLoop());
#else
while (1) {
// pause only returns when a signal was caught and the signal-catching function returned.
// pause only returns -1, no need to process the return value.
(void)pause();
}
#endif
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册