From aeedec46db9b154801acee6528225503811dd61d Mon Sep 17 00:00:00 2001 From: ling Date: Fri, 2 Jul 2021 10:02:10 +0800 Subject: [PATCH] [MSLITE] thread_pool RunWithSpin spin_count --- mindspore/core/mindrt/src/thread/actor_threadpool.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/mindspore/core/mindrt/src/thread/actor_threadpool.cc b/mindspore/core/mindrt/src/thread/actor_threadpool.cc index c5f3afefa87..8c08d481278 100644 --- a/mindspore/core/mindrt/src/thread/actor_threadpool.cc +++ b/mindspore/core/mindrt/src/thread/actor_threadpool.cc @@ -42,6 +42,7 @@ void ActorWorker::RunWithSpin() { } if (spin_count_ >= kDefaultSpinCount) { WaitUntilActive(); + spin_count_ = 0; } } }