Commit 9c455945 authored by Marko Mäkelä's avatar Marko Mäkelä

MDEV-21534 fixup: Use a compile-time constant

parent a16e3c32
......@@ -100,7 +100,7 @@ class binary_semaphore
private:
#if defined(__linux__) || defined (_WIN32)
std::atomic<int> m_signalled;
const std::memory_order mem_order = std::memory_order::memory_order_acq_rel;
static constexpr std::memory_order mem_order= std::memory_order_acq_rel;
public:
binary_semaphore() :m_signalled(0) {}
#else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment