add check_consist demo/test

This commit is contained in:
Michael Davidsaver
2016-03-20 13:31:38 -04:00
parent 045a3d94b3
commit 160d29e7b0
5 changed files with 155 additions and 0 deletions
+10
View File
@@ -186,6 +186,16 @@ void TestChannelMonitorRequester::unlisten(pvd::MonitorPtr const & monitor)
wait.trigger();
}
bool TestChannelMonitorRequester::waitForConnect()
{
Guard G(lock);
while(!connected) {
UnGuard U(G);
wait.wait();
}
return true;
}
bool TestChannelMonitorRequester::waitForEvent()
{
Guard G(lock);