Cleanup: Re-organise source dir
[urcu.git] / tests / benchmark / test_urcu_wfs.c
index f64367112020f551ed3ce3d87261537283c78e07..266884d441e93bf37d792450a51bcdb1384a9e54 100644 (file)
@@ -21,8 +21,6 @@
  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
  */
 
-#define _GNU_SOURCE
-#include "config.h"
 #include <stdio.h>
 #include <pthread.h>
 #include <stdlib.h>
@@ -479,8 +477,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;
@@ -557,6 +557,7 @@ int main(int argc, char **argv)
                        tot_pop_last);
                retval = 1;
        }
+       cds_wfs_destroy(&s);
        free(count_enqueuer);
        free(count_dequeuer);
        free(tid_enqueuer);
This page took 0.022789 seconds and 4 git commands to generate.