summaryrefslogtreecommitdiffhomepage
path: root/proto-simconnect
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-21 19:29:28 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-21 19:29:28 +0100
commitc06048a7af347bf843bf25bd305cbbf4d6cec266 (patch)
tree15b3ae75465198d1ec2bdd21d6879305c74680ca /proto-simconnect
parentff38e35d832b7c7a3e189bee4a80271fd3a3c978 (diff)
do less global memory fences in atomics
Diffstat (limited to 'proto-simconnect')
-rw-r--r--proto-simconnect/ftnoir_protocol_sc.cpp2
1 files changed, 1 insertions, 1 deletions
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)))