rcuja: use rcu_barrier in destroy
[urcu.git] / rcuja / rcuja.c
index 8f62550f76fc0b23874fc70ce83cf967f9df4fb2..0f07b15436e8b51b1591601fd4568ffb9dfa0c7e 100644 (file)
@@ -2435,8 +2435,10 @@ int cds_ja_destroy(struct cds_ja *ja,
        ret = rcuja_delete_ht(ja->ht);
        if (ret)
                return ret;
-       fprintf(stderr, "Waiting arbitrary time for node free accounting...\n");
-       sleep(10);      //wait for free TEST XXX
+
+       /* Wait for in-flight call_rcu free to complete. */
+       flavor->barrier();
+
        flavor->thread_online();
        if (uatomic_read(&ja->nr_fallback))
                fprintf(stderr,
This page took 0.022721 seconds and 4 git commands to generate.