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:
parent
e715e1393b
commit
4798e94186
|
@ -69,6 +69,7 @@ void CScheduler::serviceQueue()
|
|||
}
|
||||
}
|
||||
--nThreadsServicingQueue;
|
||||
newTaskScheduled.notify_one();
|
||||
}
|
||||
|
||||
void CScheduler::stop(bool drain)
|
||||
|
|
Loading…
Reference in New Issue