X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;ds=sidebyside;f=urcu.c;h=8cb32a117bb065405ca3f45e0224dfe8fbebbf5d;hb=8895e525a86e679e775b8267546799a0e7bc569f;hp=b04b121344c5e0d425c0d2cfaee34a662ecb8cbf;hpb=3b55dbf4ce37054fa097a827a0e4ab322cf18ca0;p=urcu.git diff --git a/urcu.c b/urcu.c index b04b121..8cb32a1 100644 --- a/urcu.c +++ b/urcu.c @@ -105,7 +105,7 @@ static void force_mb_single_thread(pthread_t tid) * Wait for sighandler (and thus mb()) to execute on every thread. * BUSY-LOOP. */ - while (LOAD_REMOTE(sig_done) < 1) + while (LOAD_SHARED(sig_done) < 1) cpu_relax(); smp_mb(); /* read sig_done before ending the barrier */ } @@ -134,7 +134,7 @@ static void force_mb_all_threads(void) * Wait for sighandler (and thus mb()) to execute on every thread. * BUSY-LOOP. */ - while (LOAD_REMOTE(sig_done) < num_readers) + while (LOAD_SHARED(sig_done) < num_readers) cpu_relax(); smp_mb(); /* read sig_done before ending the barrier */ }