diff options
Diffstat (limited to 'src/scheduler.h')
-rw-r--r-- | src/scheduler.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/scheduler.h b/src/scheduler.h index 1e64195484..29f005d49c 100644 --- a/src/scheduler.h +++ b/src/scheduler.h @@ -5,11 +5,6 @@ #ifndef BITCOIN_SCHEDULER_H #define BITCOIN_SCHEDULER_H -// -// NOTE: -// boost::thread should be ported to std::thread -// when we support C++11. -// #include <condition_variable> #include <functional> #include <list> @@ -26,7 +21,7 @@ // CScheduler* s = new CScheduler(); // s->scheduleFromNow(doSomething, std::chrono::milliseconds{11}); // Assuming a: void doSomething() { } // s->scheduleFromNow([=] { this->func(argument); }, std::chrono::milliseconds{3}); -// boost::thread* t = new boost::thread(std::bind(CScheduler::serviceQueue, s)); +// std::thread* t = new std::thread([&] { s->serviceQueue(); }); // // ... then at program shutdown, make sure to call stop() to clean up the thread(s) running serviceQueue: // s->stop(); |