* 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>
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 = 1;
tot_successful_enqueues,
tot_successful_dequeues + end_dequeues);
+ cds_wfq_destroy(&q);
free(count_enqueuer);
free(count_dequeuer);
free(tid_enqueuer);