Skip to content

Commit 7fe29d8

Browse files
committed
Merge pull request #6285
72bf90d Fix scheduler build with some boost versions. (Cory Fields)
2 parents c1fb0e1 + 72bf90d commit 7fe29d8

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/scheduler.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,10 @@ void CScheduler::serviceQueue()
5050
// Keep waiting until timeout
5151
}
5252
#else
53+
// Some boost versions have a conflicting overload of wait_until that returns void.
54+
// Explicitly use a template here to avoid hitting that overload.
5355
while (!shouldStop() && !taskQueue.empty() &&
54-
newTaskScheduled.wait_until(lock, taskQueue.begin()->first) != boost::cv_status::timeout) {
56+
newTaskScheduled.wait_until<>(lock, taskQueue.begin()->first) != boost::cv_status::timeout) {
5557
// Keep waiting until timeout
5658
}
5759
#endif

0 commit comments

Comments
 (0)