X-Git-Url: http://plrg.eecs.uci.edu/git/?p=cdsspec-compiler.git;a=blobdiff_plain;f=benchmark%2Fmcs-lock%2Fmcs-lock.h;fp=benchmark%2Fmcs-lock%2Fmcs-lock.h;h=4714567fd1a82b02839897c919a639bed22e96a9;hp=a27b37e0431d281934ed1ee9c3ae9d0176de7405;hb=789a02caa782b613d3c381710127f9e71fe811c4;hpb=38773af4f0e728a6aeef1e10f358cee884f67504 diff --git a/benchmark/mcs-lock/mcs-lock.h b/benchmark/mcs-lock/mcs-lock.h index a27b37e..4714567 100644 --- a/benchmark/mcs-lock/mcs-lock.h +++ b/benchmark/mcs-lock/mcs-lock.h @@ -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;