diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-21 19:29:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2019-02-21 19:29:28 +0100 |
commit | c06048a7af347bf843bf25bd305cbbf4d6cec266 (patch) | |
tree | 15b3ae75465198d1ec2bdd21d6879305c74680ca /options/scoped.cpp | |
parent | ff38e35d832b7c7a3e189bee4a80271fd3a3c978 (diff) |
do less global memory fences in atomics
Diffstat (limited to 'options/scoped.cpp')
-rw-r--r-- | options/scoped.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/options/scoped.cpp b/options/scoped.cpp index ef5b94d6..f5e219e2 100644 --- a/options/scoped.cpp +++ b/options/scoped.cpp @@ -10,7 +10,7 @@ namespace options { // XXX hack: the flag shouldn't be here as action at distance -sh 20160926 -static std::atomic<bool> teardown_flag{false}; +static std::atomic<bool> teardown_flag = false; [[nodiscard]] static bool set_teardown_flag(bool value); static void ensure_thread(); static bool is_tracker_teardown(); |