Add memory order to the list of clear() parameters

This commit is contained in:
an-tao 2019-01-30 13:09:48 +08:00
parent 245faabfce
commit acd56f2cee

View File

@ -126,7 +126,7 @@ class SpinLock
}
~SpinLock()
{
_flag.clear();
_flag.clear(std::memory_order_release);
}
private: