X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Ftest_urcu_gc.c;h=ddafb871536ff1b76f1c69a703f4852a9bb38509;hp=9897dcaf387c6504b12a65f0ce4c954020dea388;hb=5481ddb381061bda64aebc039900d21cac6a6caf;hpb=a50a7b4333a5039f1471c0b7cfbfb3d6dc5379fb diff --git a/tests/test_urcu_gc.c b/tests/test_urcu_gc.c index 9897dca..ddafb87 100644 --- a/tests/test_urcu_gc.c +++ b/tests/test_urcu_gc.c @@ -3,7 +3,7 @@ * * Userspace RCU library - test program (with baatch reclamation) * - * 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 @@ -207,7 +207,7 @@ void *thr_reader(void *_count) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { rcu_read_lock(); @@ -280,7 +280,7 @@ void *thr_writer(void *data) while (!test_go) { } - smp_mb(); + cmm_smp_mb(); for (;;) { #ifndef TEST_LOCAL_GC @@ -444,7 +444,7 @@ int main(int argc, char **argv) exit(1); } - smp_mb(); + cmm_smp_mb(); test_go = 1;