From c10e08c3896343cc7ddffe1dd7b1d09da2f8548e Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 7 Jun 2021 20:20:10 +0800 Subject: import(life): ... --- works/life/computer-network-experiment/Output.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'works/life/computer-network-experiment/Output.h') 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 #include +#include #include enum class OutputType { Normal, Error }; @@ -63,4 +64,4 @@ void OutputThread(); void SignalAndWaitForOutputThreadStop(); -extern std::thread output_thread; +std::lock_guard BlockOutputThread(); -- cgit v1.2.3