From 487197e5a02609694ddffb2d04eaea78c7ef1c71 Mon Sep 17 00:00:00 2001 From: ling Date: Fri, 16 Jul 2021 14:49:00 +0800 Subject: [PATCH] [MSLITE] mindrt windows bug --- mindspore/core/mindrt/src/actor/actormgr.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/core/mindrt/src/actor/actormgr.cc b/mindspore/core/mindrt/src/actor/actormgr.cc index 4d9c7283637..34ac0280f75 100644 --- a/mindspore/core/mindrt/src/actor/actormgr.cc +++ b/mindspore/core/mindrt/src/actor/actormgr.cc @@ -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 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.