We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f20351b commit 20b1ea9Copy full SHA for 20b1ea9
1 file changed
Foundation/src/Mutex.cpp
@@ -66,7 +66,7 @@ namespace {
66
// to avoid cache line bouncing, then attempts acquire if lock appears free.
67
inline bool tryAcquire(std::atomic_flag& flag)
68
{
69
-#if POCO_HAVE_CPP20_COMPILER
+#if defined(__cpp_lib_atomic_flag_test)
70
if (!flag.test(std::memory_order_relaxed))
71
if (!flag.test_and_set(std::memory_order_acquire))
72
return true;
0 commit comments