Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F13115798
D9957.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
755 B
Subscribers
None
D9957.diff
View Options
diff --git a/src/scheduler.h b/src/scheduler.h
--- a/src/scheduler.h
+++ b/src/scheduler.h
@@ -7,11 +7,6 @@
#include <sync.h>
-//
-// NOTE:
-// boost::thread should be ported to std::thread
-// when we support C++11.
-//
#include <condition_variable>
#include <functional>
#include <list>
@@ -28,7 +23,7 @@
// s->scheduleFromNow(doSomething, std::chrono::milliseconds{11});
// 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:
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 1, 12:08 (3 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5187777
Default Alt Text
D9957.diff (755 B)
Attached To
D9957: doc: Switch boost::thread to std::thread in scheduler
Event Timeline
Log In to Comment