Skip to content

Commit fab2950

Browse files
author
MarcoFalke
committed
doc: Switch boost::thread to std::thread in scheduler
After commit d0ebd93 the scheduler itself no longer cares if the serviceQueue is run in a std::thread or boost::thread. Change the documentation to std::thread because we switched to C++11.
1 parent fa98196 commit fab2950

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/scheduler.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@
55
#ifndef BITCOIN_SCHEDULER_H
66
#define BITCOIN_SCHEDULER_H
77

8-
//
9-
// NOTE:
10-
// boost::thread should be ported to std::thread
11-
// when we support C++11.
12-
//
138
#include <condition_variable>
149
#include <functional>
1510
#include <list>
@@ -26,7 +21,7 @@
2621
// CScheduler* s = new CScheduler();
2722
// s->scheduleFromNow(doSomething, std::chrono::milliseconds{11}); // Assuming a: void doSomething() { }
2823
// s->scheduleFromNow([=] { this->func(argument); }, std::chrono::milliseconds{3});
29-
// boost::thread* t = new boost::thread(std::bind(CScheduler::serviceQueue, s));
24+
// std::thread* t = new std::thread([&] { s->serviceQueue(); });
3025
//
3126
// ... then at program shutdown, make sure to call stop() to clean up the thread(s) running serviceQueue:
3227
// s->stop();

0 commit comments

Comments
 (0)