| 46 | using namespace Log; |
| 47 | |
| 48 | void stopCompressionThread() { |
| 49 | { |
| 50 | std::lock_guard<std::mutex> lock( |
| 51 | RuntimeLogger::nanoLogSingleton.condMutex); |
| 52 | RuntimeLogger::nanoLogSingleton.compressionThreadShouldExit = true; |
| 53 | RuntimeLogger::nanoLogSingleton.workAdded.notify_all(); |
| 54 | } |
| 55 | |
| 56 | if (RuntimeLogger::nanoLogSingleton.compressionThread.joinable()) { |
| 57 | RuntimeLogger::nanoLogSingleton.compressionThread.join(); |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | void restartCompressionThread() { |
| 62 | stopCompressionThread(); |
no outgoing calls
no test coverage detected