forked from mindspore-Ecosystem/mindspore
!19140 fix the bug of deadloop actor runtime
Merge pull request !19140 from limingqi107/actor_runtime2
This commit is contained in:
commit
3bf35c3ae7
|
@ -91,7 +91,7 @@ int ShardedThread::EnqueMessage(std::unique_ptr<MessageBase> &&msg) {
|
|||
++msgCount;
|
||||
|
||||
// true : The actor is running. else the actor will be ready to run.
|
||||
if (start && (ready == false) && (terminated == false) && actor->IsActive(msgCount)) {
|
||||
if (start && (ready == false) && (terminated == false)) {
|
||||
ActorMgr::GetActorMgrRef()->SetActorReady(actor);
|
||||
ready = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue