X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=urcu-defer.c;h=cd939c7ac85b4bd03bb3d24f769cbb8ef8f70604;hp=00dd3c60b3bcf1a2ea7895b3612953a0203af6f6;hb=29cdb8d893d97704e4a5c893709e81c3b6da6f63;hpb=48f9433c41294bad0a9cb31515c35260703d691a diff --git a/urcu-defer.c b/urcu-defer.c index 00dd3c6..cd939c7 100644 --- a/urcu-defer.c +++ b/urcu-defer.c @@ -116,19 +116,15 @@ static void rcu_defer_barrier_queue(struct defer_queue *queue, smp_rmb(); /* read head before q[]. */ p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]); if (unlikely(DQ_IS_FCT_BIT(p))) { - //printf("%lu fct bit %p\n", i-1, p); DQ_CLEAR_FCT_BIT(p); queue->last_fct_out = p; p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]); } else if (unlikely(p == DQ_FCT_MARK)) { - //printf("%lu fct mark %p\n", i-1, p); p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]); queue->last_fct_out = p; p = LOAD_SHARED(queue->q[i++ & DEFER_QUEUE_MASK]); - }// else - //printf("%lu data %p\n", i-1, p); + } fct = queue->last_fct_out; - //printf("tid %lu %lu last_fct %p data %p\n", pthread_self(), i-1, fct, p); fct(p); } smp_mb(); /* push tail after having used q[] */