MCPcopy Create free account
hub / github.com/PlatformLab/NanoLog / restartCompressionThread

Function restartCompressionThread

runtime/LogTest.cc:61–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void restartCompressionThread() {
62 stopCompressionThread();
63
64 RuntimeLogger::nanoLogSingleton.compressionThreadShouldExit = false;
65 RuntimeLogger::nanoLogSingleton.compressionThread =
66 std::thread(&RuntimeLogger::compressionThreadMain,
67 &RuntimeLogger::nanoLogSingleton);
68}
69
70// The fixture for testing class Foo.
71class LogTest : public ::testing::Test {

Callers

nothing calls this directly

Calls 1

stopCompressionThreadFunction · 0.85

Tested by

no test coverage detected