11 model->switch_to_master(new ModelAction(ATOMIC_LOCK, std::memory_order_seq_cst, this));
14 bool mutex::try_lock() {
15 model->switch_to_master(new ModelAction(ATOMIC_TRYLOCK, std::memory_order_seq_cst, this));
16 return thread_current()->get_return_value();
19 void mutex::unlock() {
20 model->switch_to_master(new ModelAction(ATOMIC_UNLOCK, std::memory_order_seq_cst, this));