Esempio n. 1
0
 bool try_lock() const
 {
     return state.exchange(Locked, std::memory_order_acquire) != Locked;
 }