!20410 [MSLITE] mindrt windows bug

Merge pull request !20410 from ling/bug
This commit is contained in:
i-robot 2021-07-17 06:54:34 +00:00 committed by Gitee
commit e6b02277f8
1 changed files with 1 additions and 1 deletions

View File

@ -86,10 +86,10 @@ void ActorMgr::TerminateAll() {
// send terminal msg to all actors.
for (auto actorIt = actorsWaiting.begin(); actorIt != actorsWaiting.end(); ++actorIt) {
(*actorIt)->SetRunningStatus(true);
std::unique_ptr<MessageBase> msg(new (std::nothrow) MessageBase("Terminate", MessageBase::Type::KTERMINATE));
MINDRT_OOM_EXIT(msg);
(void)(*actorIt)->EnqueMessage(std::move(msg));
(*actorIt)->SetRunningStatus(true);
}
// wait actor's thread to finish.