diff options
| author | MarcoFalke <[email protected]> | 2020-05-20 11:34:31 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-05-21 08:13:00 -0400 |
| commit | fa4ea997b4da1ae0afafba223fff9efbeefaf555 (patch) | |
| tree | 9a819c005582d906d5a179c3a3e4eed6f19fbd84 /src/init.cpp | |
| parent | Merge #18740: Remove g_rpc_node global (diff) | |
| download | discoin-fa4ea997b4da1ae0afafba223fff9efbeefaf555.tar.xz discoin-fa4ea997b4da1ae0afafba223fff9efbeefaf555.zip | |
init: Setup scheduler in tests and init in exactly the same way
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp index 025ae0652..786e03262 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1317,8 +1317,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node) node.scheduler = MakeUnique<CScheduler>(); // Start the lightweight task scheduler thread - CScheduler::Function serviceLoop = [&node]{ node.scheduler->serviceQueue(); }; - threadGroup.create_thread(std::bind(&TraceThread<CScheduler::Function>, "scheduler", serviceLoop)); + threadGroup.create_thread([&] { TraceThread("scheduler", [&] { node.scheduler->serviceQueue(); }); }); // Gather some entropy once per minute. node.scheduler->scheduleEvery([]{ |