benchmark: Use uatomic for accessing global states
[urcu.git] / tests / benchmark / test_urcu_hash.c
index c0b574d1a8692ab65c458e1e5334d71262d6a14a..606851baf37ee1b5a84e63b9e8c3cbe3e2a74e48 100644 (file)
@@ -82,8 +82,6 @@ DEFINE_URCU_TLS(unsigned long, lookup_ok);
 
 struct cds_lfht *test_ht;
 
-volatile int test_go, test_stop;
-
 unsigned long wdelay;
 
 unsigned long duration;
@@ -635,14 +633,14 @@ int main(int argc, char **argv)
 
        cmm_smp_mb();
 
-       test_go = 1;
+       begin_test();
 
        remain = duration;
        do {
                remain = sleep(remain);
        } while (remain > 0);
 
-       test_stop = 1;
+       end_test();
 
 end_pthread_join:
        for (i_thr = 0; i_thr < nr_readers_created; i_thr++) {
This page took 0.023824 seconds and 4 git commands to generate.