benchmark: Use uatomic for accessing global states
[urcu.git] / tests / benchmark / test_urcu_hash_unique.c
index b8381b5c9e37478c8b9f8052669f09bbd3bc805a..487baa878e698cc01bad314cd34d5b77cb615fe0 100644 (file)
@@ -57,10 +57,7 @@ void *test_hash_unique_thr_reader(void *_count)
 
        rcu_register_thread();
 
-       while (!test_go)
-       {
-       }
-       cmm_smp_mb();
+       wait_until_go();
 
        for (;;) {
                struct lfht_test_node *node;
@@ -122,10 +119,7 @@ void *test_hash_unique_thr_writer(void *_count)
 
        rcu_register_thread();
 
-       while (!test_go)
-       {
-       }
-       cmm_smp_mb();
+       wait_until_go();
 
        for (;;) {
                /*
This page took 0.02259 seconds and 4 git commands to generate.