forked from mindspore-Ecosystem/mindspore
!20410 [MSLITE] mindrt windows bug
Merge pull request !20410 from ling/bug
This commit is contained in:
commit
e6b02277f8
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue