commit | f59e58f2024cfe12178d75784da23a7ddab1f089 | [log] [tgz] |
---|---|---|
author | Teng Liang <philoliang2011@gmail.com> | Fri Sep 07 16:41:54 2018 -0700 |
committer | Teng Liang <philoliang2011@gmail.com> | Mon Sep 10 12:42:01 2018 -0700 |
tree | 38a96d7820948855339d7bd2e36a006d026da0ce | |
parent | 52009043030df599db1bb6c9ee5ddde30c7f7aca [diff] [blame] |
core: add a facility to execute functions on the main io_service Change-Id: I38e5f4ad5ed6798a14e0075fb7a14b792f8b2413 refs: #4683
diff --git a/tests/rib-io-fixture.cpp b/tests/rib-io-fixture.cpp index ef228d5..d058851 100644 --- a/tests/rib-io-fixture.cpp +++ b/tests/rib-io-fixture.cpp
@@ -35,6 +35,9 @@ std::mutex m; std::condition_variable cv; + g_mainIo = &getGlobalIoService(); + setMainIoService(g_mainIo); + g_ribThread = boost::thread([&] { { std::lock_guard<std::mutex> lock(m);