From ce1f6d0526e146bef6b29e21ade60b54c27aa57d Mon Sep 17 00:00:00 2001 From: Benoit Jacob Date: Tue, 12 Apr 2022 17:47:14 +0000 Subject: [PATCH] explicitly initialize as false - hope the compiler optimizes that --- capture/src/capture.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/capture/src/capture.cpp b/capture/src/capture.cpp index a0c83973..04ae243c 100644 --- a/capture/src/capture.cpp +++ b/capture/src/capture.cpp @@ -31,7 +31,7 @@ // technically not allowed there, even though in practice it would work. // The good thing with C++11 atomics is that we can use atomic instead // here and be on the actually supported path. -static std::atomic s_disconnect; +static std::atomic s_disconnect { false }; void SigInt( int ) {