summaryrefslogtreecommitdiff
path: root/zen/globals.h
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2021-05-10 12:09:24 +0000
committerB. Stack <bgstack15@gmail.com>2021-05-10 12:09:24 +0000
commit692fd264ae30b5b844f748626262e79bc3d5a7e2 (patch)
tree9261c60b81eb28e068f0f2f44fd8e60214462b2a /zen/globals.h
parentMerge branch '11.9' into 'master' (diff)
parentadd upstream 11.10 (diff)
downloadFreeFileSync-692fd264ae30b5b844f748626262e79bc3d5a7e2.tar.gz
FreeFileSync-692fd264ae30b5b844f748626262e79bc3d5a7e2.tar.bz2
FreeFileSync-692fd264ae30b5b844f748626262e79bc3d5a7e2.zip
Merge branch '11.10' into 'master'11.10
add upstream 11.10 See merge request opensource-tracking/FreeFileSync!33
Diffstat (limited to 'zen/globals.h')
-rw-r--r--zen/globals.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/zen/globals.h b/zen/globals.h
index 47da2ac4..6a50a497 100644
--- a/zen/globals.h
+++ b/zen/globals.h
@@ -211,10 +211,6 @@ void registerGlobalForDestruction(CleanUpEntry& entry)
}
//------------------------------------------------------------------------------------------
- #ifdef __cpp_lib_atomic_wait
- #error implement + rewiew improvements
- #endif
-
inline
bool PodSpinMutex::tryLock()
@@ -227,11 +223,7 @@ inline
void PodSpinMutex::lock()
{
while (!tryLock())
-#ifdef __cpp_lib_atomic_wait
flag_.wait(true, std::memory_order_relaxed);
-#else
- ;
-#endif
}
@@ -239,9 +231,7 @@ inline
void PodSpinMutex::unlock()
{
flag_.clear(std::memory_order_release);
-#ifdef __cpp_lib_atomic_wait
flag_.notify_one();
-#endif
}
bgstack15