X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_wfs.c;h=49f92184e6a1b53351e9946d28d20478e7548cc8;hb=06f22bdbb0c4c4d5db42a2e2dc35818aa61415be;hp=f50b1400ffdd95d847d19ef8e256677982ffd734;hpb=cb3f3d6bce4faeb41e4109e12fa722f73a6f6c13;p=urcu.git diff --git a/tests/test_urcu_wfs.c b/tests/test_urcu_wfs.c index f50b140..49f9218 100644 --- a/tests/test_urcu_wfs.c +++ b/tests/test_urcu_wfs.c @@ -76,7 +76,7 @@ static unsigned long wdelay; static inline void loop_sleep(unsigned long l) { while(l-- != 0) - cpu_relax(); + caa_cpu_relax(); } static int verbose_mode; @@ -167,7 +167,7 @@ void *thr_enqueuer(void *_count) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { struct wfs_node *node = malloc(sizeof(*node)); @@ -207,7 +207,7 @@ void *thr_dequeuer(void *_count) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { struct wfs_node *node = wfs_pop_blocking(&s); @@ -354,7 +354,7 @@ int main(int argc, char **argv) exit(1); } - smp_mb(); + cmm_smp_mb(); test_go = 1;