X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_assign.c;h=24a704b242583de6f6894b4d534426124d4f9aa9;hb=3c24913f970c2dc1dab0a00e3ee9683250667f82;hp=87abea2221fa53049431ba541d5e327a57e6621f;hpb=a50a7b4333a5039f1471c0b7cfbfb3d6dc5379fb;p=urcu.git diff --git a/tests/test_urcu_assign.c b/tests/test_urcu_assign.c index 87abea2..24a704b 100644 --- a/tests/test_urcu_assign.c +++ b/tests/test_urcu_assign.c @@ -3,7 +3,7 @@ * * Userspace RCU library - test program * - * Copyright February 2009 - Mathieu Desnoyers + * Copyright February 2009 - Mathieu Desnoyers * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -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;