X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftest_urcu_wfcq.c;h=a3bd7e556031eef71c19b1be5e811ae5daaebdf6;hb=8ff97cc3836c6a2739b62af0a859511c9c284e4f;hp=6af02405b954b57eb66be5388eadd857d2cfad4f;hpb=db182e317b72b20bcf8f3378aac7e18917f07766;p=urcu.git diff --git a/tests/test_urcu_wfcq.c b/tests/test_urcu_wfcq.c index 6af0240..a3bd7e5 100644 --- a/tests/test_urcu_wfcq.c +++ b/tests/test_urcu_wfcq.c @@ -285,7 +285,7 @@ static void do_test_splice(enum test_sync sync) static void *thr_dequeuer(void *_count) { unsigned long long *count = _count; - unsigned int counter; + unsigned int counter = 0; printf_verbose("thread_begin %s, thread id : %lx, tid %lu\n", "dequeuer", (unsigned long) pthread_self(), @@ -351,17 +351,19 @@ static void test_end(unsigned long long *nr_dequeues, static void show_usage(int argc, char **argv) { - printf("Usage : %s nr_dequeuers nr_enqueuers duration (s)", argv[0]); - printf(" [-d delay] (enqueuer period (in loops))"); - printf(" [-c duration] (dequeuer period (in loops))"); - printf(" [-v] (verbose output)"); - printf(" [-a cpu#] [-a cpu#]... (affinity)"); - printf(" [-q] (test dequeue)"); - printf(" [-s] (test splice, enabled by default)"); - printf(" [-M] (use mutex external synchronization)"); - printf(" Note: default: no external synchronization used."); - printf(" [-f] (force user-provided synchronization)"); - printf(" [-w] Wait for dequeuer to empty queue"); + printf("Usage : %s nr_dequeuers nr_enqueuers duration (s) \n", + argv[0]); + printf("OPTIONS:\n"); + printf(" [-d delay] (enqueuer period (in loops))\n"); + printf(" [-c duration] (dequeuer period (in loops))\n"); + printf(" [-v] (verbose output)\n"); + printf(" [-a cpu#] [-a cpu#]... (affinity)\n"); + printf(" [-q] (test dequeue)\n"); + printf(" [-s] (test splice, enabled by default)\n"); + printf(" [-M] (use mutex external synchronization)\n"); + printf(" Note: default: no external synchronization used.\n"); + printf(" [-f] (force user-provided synchronization)\n"); + printf(" [-w] Wait for dequeuer to empty queue\n"); printf("\n"); }