X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_assign.c;h=24a704b242583de6f6894b4d534426124d4f9aa9;hp=b1298a447762397c14a452f0b8bd4f2b2e4d6ec8;hb=06f22bdbb0c4c4d5db42a2e2dc35818aa61415be;hpb=6982d6d71aeed16d2d929bd0ed221e8f444b706e diff --git a/tests/test_urcu_assign.c b/tests/test_urcu_assign.c index b1298a4..24a704b 100644 --- a/tests/test_urcu_assign.c +++ b/tests/test_urcu_assign.c @@ -83,7 +83,7 @@ static unsigned long wduration; static inline void loop_sleep(unsigned long l) { while(l-- != 0) - cpu_relax(); + caa_cpu_relax(); } static int verbose_mode; @@ -231,7 +231,7 @@ void *thr_reader(void *_count) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { rcu_read_lock(); @@ -269,7 +269,7 @@ void *thr_writer(void *_count) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { new = test_array_alloc(); @@ -420,7 +420,7 @@ int main(int argc, char **argv) exit(1); } - smp_mb(); + cmm_smp_mb(); test_go = 1;