ms-queue: remove more externs and unintended shared data
[model-checker-benchmarks.git] / mcs-lock / mcs-lock.h
index 47c2f8f..2d39f2f 100644 (file)
@@ -69,7 +69,7 @@ public:
                if ( next == NULL )
                {
                        mcs_node * tail_was_me = me;
-                       if ( m_tail.compare_exchange( tail_was_me,NULL,std::mo_acq_rel) ) {
+                       if ( m_tail.compare_exchange_strong( tail_was_me,NULL,std::mo_acq_rel) ) {
                                // got null in tail, mutex is unlocked
                                return;
                        }