benchmark for performance results
[cdsspec-compiler.git] / benchmark / mcs-lock / mcs-lock.cc
index 0be129f2ae4b1e67897decfacbc9f565657cd900..43435b46d78c5193174ea3eb8a927b728bc27cc6 100644 (file)
@@ -13,8 +13,8 @@ void threadA(void *arg)
 {
        mcs_mutex::guard g(mutex);
        //printf("store: %d\n", 17);
-       store_32(&shared, 17);
-       //shared = 17;
+       //store_32(&shared, 17);
+       shared = 17;
        mutex->unlock(&g);
        mutex->lock(&g);
        //printf("load: %u\n", load_32(&shared));
@@ -29,8 +29,8 @@ void threadB(void *arg)
        mutex->unlock(&g);
        mutex->lock(&g);
        //printf("store: %d\n", 17);
-       //shared = 17;
-       store_32(&shared, 17);
+       shared = 17;
+       //store_32(&shared, 17);
 }
 
 int user_main(int argc, char **argv)