mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-25 22:34:27 +00:00
Fix scheduler build with some boost versions.
Some boost versions have a conflicting overload of wait_until that returns void. Explicitly use a template here to avoid hitting that overload.
This commit is contained in:
parent
c1fb0e1075
commit
72bf90d770
@ -50,8 +50,10 @@ void CScheduler::serviceQueue()
|
|||||||
// Keep waiting until timeout
|
// Keep waiting until timeout
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
// Some boost versions have a conflicting overload of wait_until that returns void.
|
||||||
|
// Explicitly use a template here to avoid hitting that overload.
|
||||||
while (!shouldStop() && !taskQueue.empty() &&
|
while (!shouldStop() && !taskQueue.empty() &&
|
||||||
newTaskScheduled.wait_until(lock, taskQueue.begin()->first) != boost::cv_status::timeout) {
|
newTaskScheduled.wait_until<>(lock, taskQueue.begin()->first) != boost::cv_status::timeout) {
|
||||||
// Keep waiting until timeout
|
// Keep waiting until timeout
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user