From: Mathieu Desnoyers Date: Wed, 23 Sep 2009 17:34:31 +0000 (-0400) Subject: Cleanup: remove debug code form urcu-defer.c X-Git-Tag: v0.1~43 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=71df5ef45048db73e3fdec329e6e5c5515f8b0b3;p=urcu.git Cleanup: remove debug code form urcu-defer.c Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu-defer.c b/urcu-defer.c index 5e4650f..032900d 100644 --- a/urcu-defer.c +++ b/urcu-defer.c @@ -289,21 +289,15 @@ void *thr_defer(void *args) { for (;;) { pthread_testcancel(); - printf("a\n"); /* * "Be green". Don't wake up the CPU if there is no RCU work * to perform whatsoever. Aims at saving laptop battery life by * leaving the processor in sleep state when idle. */ - printf("b\n"); wait_defer(); - printf("e\n"); /* Sleeping after wait_defer to let many callbacks enqueue */ - //TEST poll(NULL,0,100); /* wait for 100ms */ - printf("f\n"); + poll(NULL,0,100); /* wait for 100ms */ rcu_defer_barrier(); - printf("perform deferred call_rcu() from worker thread %lu.\n", - time(NULL)); } return NULL;