aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-23 06:42:09 -0800
committerChris Robinson <[email protected]>2022-02-23 06:42:09 -0800
commit2564a3750f4c012dc33da8192d12b0c2247c3829 (patch)
tree51a5cde3982270b51719d93a910990340a9e9953
parent625b0d380ad552692a79f3f69d0f286b90bc0e98 (diff)
Remove unused atomic_invflag
-rw-r--r--common/atomic.h19
1 files changed, 0 insertions, 19 deletions
diff --git a/common/atomic.h b/common/atomic.h
index affbc115..5e9b04c6 100644
--- a/common/atomic.h
+++ b/common/atomic.h
@@ -2,27 +2,8 @@
#define AL_ATOMIC_H
#include <atomic>
-#include <utility>
-namespace al {
-
-struct atomic_invflag : protected std::atomic_flag {
- using std::atomic_flag::atomic_flag;
-
- inline bool test_and_clear(std::memory_order m=std::memory_order_seq_cst) noexcept
- { return !test_and_set(m); }
- inline bool test_and_clear(std::memory_order m=std::memory_order_seq_cst) volatile noexcept
- { return !test_and_set(m); }
-
- inline void set(std::memory_order m=std::memory_order_seq_cst) noexcept
- { clear(m); }
- inline void set(std::memory_order m=std::memory_order_seq_cst) volatile noexcept
- { clear(m); }
-};
-
-} // namespace al
-
using RefCount = std::atomic<unsigned int>;
inline void InitRef(RefCount &ref, unsigned int value)