diff options
| -rw-r--r-- | src/lanes.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lanes.cpp b/src/lanes.cpp index 024ac67..ef8577b 100644 --- a/src/lanes.cpp +++ b/src/lanes.cpp | |||
| @@ -835,10 +835,11 @@ void signal_handler(int signal_) | |||
| 835 | 835 | ||
| 836 | // helper to have correct callstacks when crashing a Win32 running on 64 bits Windows | 836 | // helper to have correct callstacks when crashing a Win32 running on 64 bits Windows |
| 837 | // don't forget to toggle Debug/Exceptions/Win32 in visual Studio too! | 837 | // don't forget to toggle Debug/Exceptions/Win32 in visual Studio too! |
| 838 | static std::atomic_flag s_ecoc_initDone; | ||
| 839 | static std::atomic_flag s_ecoc_go_ahead; | ||
| 840 | static void EnableCrashingOnCrashes(void) | 838 | static void EnableCrashingOnCrashes(void) |
| 841 | { | 839 | { |
| 840 | static std::atomic_flag s_ecoc_initDone; | ||
| 841 | static std::atomic_flag s_ecoc_go_ahead; | ||
| 842 | |||
| 842 | if (!s_ecoc_initDone.test_and_set(std::memory_order_acquire)) { | 843 | if (!s_ecoc_initDone.test_and_set(std::memory_order_acquire)) { |
| 843 | using GetPolicy_t = BOOL(WINAPI *)(LPDWORD lpFlags); | 844 | using GetPolicy_t = BOOL(WINAPI *)(LPDWORD lpFlags); |
| 844 | using SetPolicy_t = BOOL(WINAPI *)(DWORD dwFlags); | 845 | using SetPolicy_t = BOOL(WINAPI *)(DWORD dwFlags); |
