Cleanup headers
[urcu.git] / urcu.c
diff --git a/urcu.c b/urcu.c
index 07661a3cb448b34505f24a8552a421741bb282bd..b323711294ae25ffc7c65641ab1a73240aa03aaa 100644 (file)
--- a/urcu.c
+++ b/urcu.c
@@ -211,17 +211,17 @@ static void force_mb_all_threads(void)
  */
 static void wait_gp(struct reader_registry *index)
 {
-       atomic_dec(&gp_futex);
+       uatomic_dec(&gp_futex);
        force_mb_single_thread(index); /* Write futex before read reader_gp */
        if (!rcu_old_gp_ongoing(index->urcu_active_readers)) {
                /* Read reader_gp before write futex */
                force_mb_single_thread(index);
                /* Callbacks are queued, don't wait. */
-               atomic_set(&gp_futex, 0);
+               uatomic_set(&gp_futex, 0);
        } else {
                /* Read reader_gp before read futex */
                force_mb_single_thread(index);
-               if (atomic_read(&gp_futex) == -1)
+               if (uatomic_read(&gp_futex) == -1)
                        futex(&gp_futex, FUTEX_WAIT, -1,
                              NULL, NULL, 0);
        }
@@ -373,13 +373,13 @@ void *rcu_assign_pointer_sym(void **p, void *v)
 void *rcu_xchg_pointer_sym(void **p, void *v)
 {
        wmb();
-       return xchg(p, v);
+       return uatomic_xchg(p, v);
 }
 
 void *rcu_cmpxchg_pointer_sym(void **p, void *old, void *_new)
 {
        wmb();
-       return cmpxchg(p, old, _new);
+       return uatomic_cmpxchg(p, old, _new);
 }
 
 void *rcu_publish_content_sym(void **p, void *v)
This page took 0.02323 seconds and 4 git commands to generate.