X-Git-Url: http://git.liburcu.org/?p=userspace-rcu.git;a=blobdiff_plain;f=urcu-defer.c;h=032900db58ce00446a7ecdc2b62335f20a1edff8;hp=5e4650ff003b4c8d97ff0fb240a0d14fa4d8660a;hb=71df5ef45048db73e3fdec329e6e5c5515f8b0b3;hpb=2c22932bff02d0124579d70c67695ce2a439006a 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;