[MSLITE] mindrt windows bug

This commit is contained in:
ling 2021-07-16 14:49:00 +08:00
parent 2a6caf97cc
commit 487197e5a0
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.