fix ms-queue spec
[cdsspec-compiler.git] / benchmark / mcs-lock / mcs-lock.h
index a27b37e0431d281934ed1ee9c3ae9d0176de7405..4714567fd1a82b02839897c919a639bed22e96a9 100644 (file)
@@ -94,7 +94,7 @@ public:
                        // unlock of pred can see me in the tail before I fill next
 
                        // publish me to previous lock-holder :
-                       // FIXME: detection miss  
+                       // FIXME: detection miss, don't think it's necessary  
                        pred->next.store(me, std::mo_release );
 
                        // (*2) pred not touched any more       
@@ -132,7 +132,7 @@ public:
        void unlock(guard * I) {
                mcs_node * me = &(I->m_node);
 
-               // FIXME: detection miss  
+               // FIXME: detection miss, don't think it's necessary
                mcs_node * next = me->next.load(std::mo_acquire);
                if ( next == NULL )
                {
@@ -155,7 +155,7 @@ public:
                        // (*1) catch the race :
                        rl::linear_backoff bo;
                        for(;;) {
-                               // FIXME: detection miss  
+                               // FIXME: detection miss, don't think it's necessary
                                next = me->next.load(std::mo_acquire);
                                if ( next != NULL )
                                        break;