From 0d0f8635218a2893fcd00385019089253474f634 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Mon, 10 May 2021 08:05:45 -0400 Subject: add upstream 11.10 --- zen/globals.h | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'zen/globals.h') 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 } -- cgit