Disable line buffering in Throughput examples on Windows
Signed-off-by: Jeroen Koekkoek <jeroen@koekkoek.nl>
This commit is contained in:
parent
1c7f903546
commit
1e1e9987bc
2 changed files with 4 additions and 0 deletions
|
@ -46,7 +46,9 @@ int main (int argc, char **argv)
|
||||||
dds_entity_t writer;
|
dds_entity_t writer;
|
||||||
ThroughputModule_DataType sample;
|
ThroughputModule_DataType sample;
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
setvbuf (stdout, NULL, _IOLBF, 0);
|
setvbuf (stdout, NULL, _IOLBF, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (parse_args(argc, argv, &payloadSize, &burstInterval, &burstSize, &timeOut, &partitionName) == EXIT_FAILURE) {
|
if (parse_args(argc, argv, &payloadSize, &burstInterval, &burstSize, &timeOut, &partitionName) == EXIT_FAILURE) {
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
|
@ -75,7 +75,9 @@ int main (int argc, char **argv)
|
||||||
dds_entity_t participant;
|
dds_entity_t participant;
|
||||||
dds_entity_t reader;
|
dds_entity_t reader;
|
||||||
|
|
||||||
|
#if !defined(_WIN32)
|
||||||
setvbuf (stdout, NULL, _IOLBF, 0);
|
setvbuf (stdout, NULL, _IOLBF, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
if (parse_args(argc, argv, &maxCycles, &partitionName) == EXIT_FAILURE)
|
if (parse_args(argc, argv, &maxCycles, &partitionName) == EXIT_FAILURE)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue