add another testcase for dekker-fences
[model-checker-benchmarks.git] / mcs-lock / mcs-lock.h
index 4b808f7c3c9b9bbc7effe6b4e6c570f2712e5232..70e4019f9c9046a8242341689d51b4fd0d51a85a 100644 (file)
@@ -69,7 +69,8 @@ public:
                if ( next == NULL )
                {
                        mcs_node * tail_was_me = me;
-                       if ( m_tail.compare_exchange_strong( tail_was_me,NULL,std::mo_acq_rel) ) {
+                       if ( m_tail.compare_exchange_strong(
+                               tail_was_me,NULL,std::mo_release) ) {
                                // got null in tail, mutex is unlocked
                                return;
                        }