Page MenuHomePhabricator

D9957.diff
No OneTemporary

D9957.diff

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

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)

Event Timeline