pvtools: force flush cout
Apparently windows CRT doesn't have a timed flush.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -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)
|
||||
|
Reference in New Issue
Block a user