aboutsummaryrefslogtreecommitdiffstats
path: root/src/Log.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-24 13:37:54 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-02-24 13:37:54 +0100
commiteedb09b596ca0934d3d4a5f8603429182cb669e2 (patch)
tree24e2dd95256b3cd053397b4628096a7762843442 /src/Log.cpp
parent21939e6f0db279249a29450c44e5ba3ce783f949 (diff)
parent1387a04e605c3c511e2e4fc764eb6434b9837ef8 (diff)
downloaddabmod-eedb09b596ca0934d3d4a5f8603429182cb669e2.tar.gz
dabmod-eedb09b596ca0934d3d4a5f8603429182cb669e2.tar.bz2
dabmod-eedb09b596ca0934d3d4a5f8603429182cb669e2.zip
Merge branch 'next' into restructureEDIvsETI
Diffstat (limited to 'src/Log.cpp')
-rw-r--r--src/Log.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/Log.cpp b/src/Log.cpp
index 4780f58..0792fcf 100644
--- a/src/Log.cpp
+++ b/src/Log.cpp
@@ -77,9 +77,7 @@ void Logger::io_process()
set_thread_name("logger");
while (1) {
log_message_t m;
- while (m_message_queue.pop(m) == false) {
- std::this_thread::sleep_for(std::chrono::milliseconds(10));
- }
+ m_message_queue.wait_and_pop(m);
auto message = m.message;