aboutsummaryrefslogtreecommitdiff
path: root/works/life/computer-network-experiment/Output.h
diff options
context:
space:
mode:
Diffstat (limited to 'works/life/computer-network-experiment/Output.h')
-rw-r--r--works/life/computer-network-experiment/Output.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/works/life/computer-network-experiment/Output.h b/works/life/computer-network-experiment/Output.h
index 2d16eb0..689c3d3 100644
--- a/works/life/computer-network-experiment/Output.h
+++ b/works/life/computer-network-experiment/Output.h
@@ -8,6 +8,7 @@
#include <folly/MPMCQueue.h>
#include <iostream>
+#include <mutex>
#include <thread>
enum class OutputType { Normal, Error };
@@ -63,4 +64,4 @@ void OutputThread();
void SignalAndWaitForOutputThreadStop();
-extern std::thread output_thread;
+std::lock_guard<std::mutex> BlockOutputThread();