X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Fbenchmark%2Ftest_urcu_wfcq.c;h=84a0d0f69068b90596c967475259f06ae000422b;hp=bdd5b0928fb9081ae9c312fcdde84b509dd9107d;hb=89a6a9ce587a0b6e5570ab07fb4c680fe24a77ad;hpb=d863e15371666dff14e7f3191de5ff91d9b24d7f diff --git a/tests/benchmark/test_urcu_wfcq.c b/tests/benchmark/test_urcu_wfcq.c index bdd5b09..84a0d0f 100644 --- a/tests/benchmark/test_urcu_wfcq.c +++ b/tests/benchmark/test_urcu_wfcq.c @@ -21,8 +21,6 @@ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ -#define _GNU_SOURCE -#include "config.h" #include #include #include @@ -260,6 +258,7 @@ static void do_test_splice(enum test_sync sync) URCU_TLS(nr_successful_dequeues)++; URCU_TLS(nr_dequeues)++; } + cds_wfcq_destroy(&tmp_head, &tmp_tail); } static void *thr_dequeuer(void *_count) @@ -491,8 +490,10 @@ int main(int argc, char **argv) for (i = 0; i < duration; i++) { sleep(1); - if (verbose_mode) - (void) write(1, ".", 1); + if (verbose_mode) { + fwrite(".", sizeof(char), 1, stdout); + fflush(stdout); + } } test_stop_enqueue = 1; @@ -573,6 +574,7 @@ int main(int argc, char **argv) tot_dequeue_last); retval = 1; } + cds_wfcq_destroy(&head, &tail); free(count_enqueuer); free(count_dequeuer); free(tid_enqueuer);