diff options
| author | Wladimir J. van der Laan <[email protected]> | 2015-06-16 13:54:33 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2015-06-16 13:55:47 +0200 |
| commit | 7fe29d84bdd8d47f53684919e86ed35e619cda04 (patch) | |
| tree | 9536337e8b387b85a5f0b48eaf1f4636d0dd6a18 /src/scheduler.cpp | |
| parent | Merge pull request #6274 (diff) | |
| parent | Fix scheduler build with some boost versions. (diff) | |
| download | discoin-7fe29d84bdd8d47f53684919e86ed35e619cda04.tar.xz discoin-7fe29d84bdd8d47f53684919e86ed35e619cda04.zip | |
Merge pull request #6285
72bf90d Fix scheduler build with some boost versions. (Cory Fields)
Diffstat (limited to 'src/scheduler.cpp')
| -rw-r--r-- | src/scheduler.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/scheduler.cpp b/src/scheduler.cpp index c42eb7244..d5bb588b7 100644 --- a/src/scheduler.cpp +++ b/src/scheduler.cpp @@ -50,8 +50,10 @@ void CScheduler::serviceQueue() // Keep waiting until timeout } #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() && - 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 } #endif |