save
[cdsspec-compiler.git] / benchmark / mcs-lock / mcs-lock.h
index 4714567fd1a82b02839897c919a639bed22e96a9..a165437bf320388f52a934feb4c28ba51d6ca645 100644 (file)
@@ -96,6 +96,7 @@ public:
                        // publish me to previous lock-holder :
                        // FIXME: detection miss, don't think it's necessary  
                        pred->next.store(me, std::mo_release );
+                       printf("lock_miss1\n");
 
                        // (*2) pred not touched any more       
 
@@ -134,6 +135,7 @@ public:
 
                // FIXME: detection miss, don't think it's necessary
                mcs_node * next = me->next.load(std::mo_acquire);
+               printf("unlock_miss2\n");
                if ( next == NULL )
                {
                        mcs_node * tail_was_me = me;
@@ -157,6 +159,7 @@ public:
                        for(;;) {
                                // FIXME: detection miss, don't think it's necessary
                                next = me->next.load(std::mo_acquire);
+                               printf("unlock_miss3\n");
                                if ( next != NULL )
                                        break;
                                thrd_yield();