diff --git a/src/examples/throughput/publisher.c b/src/examples/throughput/publisher.c index 7a86fe4..0f7cce8 100644 --- a/src/examples/throughput/publisher.c +++ b/src/examples/throughput/publisher.c @@ -46,7 +46,9 @@ int main (int argc, char **argv) dds_entity_t writer; ThroughputModule_DataType sample; +#if !defined(_WIN32) setvbuf (stdout, NULL, _IOLBF, 0); +#endif if (parse_args(argc, argv, &payloadSize, &burstInterval, &burstSize, &timeOut, &partitionName) == EXIT_FAILURE) { return EXIT_FAILURE; diff --git a/src/examples/throughput/subscriber.c b/src/examples/throughput/subscriber.c index 540e8b2..2f43f49 100644 --- a/src/examples/throughput/subscriber.c +++ b/src/examples/throughput/subscriber.c @@ -75,7 +75,9 @@ int main (int argc, char **argv) dds_entity_t participant; dds_entity_t reader; +#if !defined(_WIN32) setvbuf (stdout, NULL, _IOLBF, 0); +#endif if (parse_args(argc, argv, &maxCycles, &partitionName) == EXIT_FAILURE) {