From 48f21ee71daf90d7184ca11e40cc275848b927b5 Mon Sep 17 00:00:00 2001 From: Edo Date: Sat, 13 May 2023 20:45:55 +0100 Subject: [PATCH] status: thread local --- src/client/component/status.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/component/status.cpp b/src/client/component/status.cpp index 620260a3..a9e3380f 100644 --- a/src/client/component/status.cpp +++ b/src/client/component/status.cpp @@ -8,7 +8,7 @@ namespace status { namespace { - int client_num_; + thread_local int client_num_; void print_client_num(int channel, int label, const char* fmt, const int client_num) {