From c06048a7af347bf843bf25bd305cbbf4d6cec266 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Thu, 21 Feb 2019 19:29:28 +0100 Subject: do less global memory fences in atomics --- proto-simconnect/ftnoir_protocol_sc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'proto-simconnect') diff --git a/proto-simconnect/ftnoir_protocol_sc.cpp b/proto-simconnect/ftnoir_protocol_sc.cpp index 9a1db9b5..42cdf596 100644 --- a/proto-simconnect/ftnoir_protocol_sc.cpp +++ b/proto-simconnect/ftnoir_protocol_sc.cpp @@ -62,7 +62,7 @@ void simconnect::run() break; } - if (reconnect) + if (reconnect.load(std::memory_order_relaxed)) break; if (!SUCCEEDED(hr = simconnect_calldispatch(handle, event_handler, (void*)this))) -- cgit v1.2.3