aboutsummaryrefslogtreecommitdiff
path: root/computer-network-experiment/IO.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-06-08 10:16:22 +0800
committercrupest <crupest@outlook.com>2021-06-08 10:16:22 +0800
commitcf1ab8c2f4c083f40afdeeca15c66afc0e05610d (patch)
treeaa7a161747b0fb1adbd401492e104ef925bd16df /computer-network-experiment/IO.cpp
parent2dd9b0e926ed97b64f0e6c2b6c071feaab9c47a0 (diff)
downloadlife-cf1ab8c2f4c083f40afdeeca15c66afc0e05610d.tar.gz
life-cf1ab8c2f4c083f40afdeeca15c66afc0e05610d.tar.bz2
life-cf1ab8c2f4c083f40afdeeca15c66afc0e05610d.zip
...
Diffstat (limited to 'computer-network-experiment/IO.cpp')
-rw-r--r--computer-network-experiment/IO.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/computer-network-experiment/IO.cpp b/computer-network-experiment/IO.cpp
index 0c20537..5d3fe12 100644
--- a/computer-network-experiment/IO.cpp
+++ b/computer-network-experiment/IO.cpp
@@ -9,9 +9,10 @@
folly::MPMCQueue<Output> output_queue(100);
+namespace {
folly::CancellationSource cancellation_source;
-
std::thread io_thread;
+}
void PrintOutput(const Output &output) {
std::basic_ostream<Char> *stream;