Disable line buffering in Throughput examples on Windows

Signed-off-by: Jeroen Koekkoek <jeroen@koekkoek.nl>
This commit is contained in:
Jeroen Koekkoek 2019-03-08 15:13:09 +01:00
parent 1c7f903546
commit 1e1e9987bc
2 changed files with 4 additions and 0 deletions

View file

@ -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)
{