pvtools: force flush cout

Apparently windows CRT doesn't have a timed flush.
This commit is contained in:
Michael Davidsaver
2018-09-07 14:38:05 +01:00
parent 28002fa6d7
commit 281447c909
2 changed files with 3 additions and 0 deletions

View File

@ -216,6 +216,7 @@ struct ChannelGetRequesterImpl : public ChannelGetRequester, public Tracker
{
std::cerr << "[" << m_channelName << "] failed to get: " << status << '\n';
}
std::cout.flush();
done();
}
@ -325,6 +326,7 @@ struct MonitorRequesterImpl : public MonitorRequester, public Tracker
myos << *(element->pvStructurePtr.get()) << "\n\n";
}
std::cout.flush();
}
}

View File

@ -175,6 +175,7 @@ void printValue(std::string const & channelName, PVStructure::const_shared_point
terseStructure(std::cout, pv) << std::endl;
else
std::cout << std::endl << *(pv.get()) << std::endl << std::endl;
std::cout.flush();
}
void early(const char *inp, unsigned pos)