explicitly initialize as false - hope the compiler optimizes that

This commit is contained in:
Benoit Jacob 2022-04-12 17:47:14 +00:00
parent 331f39e6a5
commit ce1f6d0526

View File

@ -31,7 +31,7 @@
// technically not allowed there, even though in practice it would work. // technically not allowed there, even though in practice it would work.
// The good thing with C++11 atomics is that we can use atomic<bool> instead // The good thing with C++11 atomics is that we can use atomic<bool> instead
// here and be on the actually supported path. // here and be on the actually supported path.
static std::atomic<bool> s_disconnect; static std::atomic<bool> s_disconnect { false };
void SigInt( int ) void SigInt( int )
{ {