Skip to content

Commit

Permalink
scheduler: Remove unused REVERSE_LOCK
Browse files Browse the repository at this point in the history
Summary:
> No longer needed after [[bitcoin/bitcoin#17270 | core#17270]]

This is a backport of [[bitcoin/bitcoin#19090 | core#19090]] [1/6]
bitcoin/bitcoin@fa609c4

Backport note: the original PR has 7 commits, but the last one is not relevant to our codebase.

Test Plan:
With tsan:
`ninja check`

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9955
  • Loading branch information
MarcoFalke authored and PiRK committed Aug 27, 2021
1 parent 6c2ae4f commit c85ed40
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/scheduler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,6 @@ void CScheduler::serviceQueue() {
// waiting or when the user's function is called.
while (!shouldStop()) {
try {
if (!shouldStop() && taskQueue.empty()) {
REVERSE_LOCK(lock);
}
while (!shouldStop() && taskQueue.empty()) {
// Wait until there is something to do.
newTaskScheduled.wait(lock);
Expand Down

0 comments on commit c85ed40

Please sign in to comment.