mirror of
https://github.com/cjcliffe/CubicSDR.git
synced 2026-06-03 06:24:49 -04:00
Flush queues on terminate() calls to unblock push()s and so ease threads termination
This commit is contained in:
@@ -98,7 +98,7 @@ public:
|
||||
std::thread::id currentThreadId = std::this_thread::get_id();
|
||||
std::cout << "WARNING: Thread 0x" << std::hex << currentThreadId << std::dec <<
|
||||
" (" << currentThreadId << ") executing {" << typeid(*this).name() << "}.push() has failed with timeout > " <<
|
||||
(timeout * 0.001) << " ms, message: " << errorMessage << std::endl << std::flush;
|
||||
(timeout * 0.001) << " ms, message: '" << errorMessage << "'" << std::endl << std::flush;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
@@ -150,7 +150,7 @@ public:
|
||||
std::thread::id currentThreadId = std::this_thread::get_id();
|
||||
std::cout << "WARNING: Thread 0x" << std::hex << currentThreadId << std::dec <<
|
||||
" (" << currentThreadId << ") executing {" << typeid(*this).name() << "}.pop() has failed with timeout > " <<
|
||||
(timeout * 0.001) << " ms, message: " << errorMessage << std::endl << std::flush;
|
||||
(timeout * 0.001) << " ms, message: '" << errorMessage << "'" << std::endl << std::flush;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user