mirror of
https://github.com/MariaDB/server.git
synced 2026-05-06 15:15:34 +02:00
MDEV-21534 fixup: Use a compile-time constant
This commit is contained in:
parent
a16e3c326d
commit
9c455945f5
1 changed files with 1 additions and 1 deletions
|
|
@ -100,7 +100,7 @@ public:
|
|||
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue