aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2022-02-06 11:08:34 -0800
committerChris Robinson <[email protected]>2022-02-06 11:08:34 -0800
commit784929f36dedbe3391eb1873101a30a801f69286 (patch)
treec241d8ad21ca440141d7d9fa01dd7f43bceba436
parent75d9044c3904b1fb0b7864c7d3d9b532000899bb (diff)
Inherit the atomic_flag constructors in atomic_invflag
-rw-r--r--common/atomic.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/common/atomic.h b/common/atomic.h
index d70382ce..affbc115 100644
--- a/common/atomic.h
+++ b/common/atomic.h
@@ -8,9 +8,7 @@
namespace al {
struct atomic_invflag : protected std::atomic_flag {
- atomic_invflag() noexcept = default;
- template<typename T>
- atomic_invflag(T&& arg) noexcept : std::atomic_flag{std::forward<T>(arg)} { }
+ 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); }