Notify other serviceQueue thread we are finished to prevent deadlocks.

zcash: cherry picked from commit 166e4b0dfa283fbdedc9a6a1e83296500c853a31
zcash: https://github.com/bitcoin/bitcoin/pull/8016
This commit is contained in:
Pavel Janík 2016-05-06 11:01:51 +02:00 committed by Larry Ruane
parent e715e1393b
commit 4798e94186
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ void CScheduler::serviceQueue()
}
}
--nThreadsServicingQueue;
newTaskScheduled.notify_one();
}
void CScheduler::stop(bool drain)