diff options
Diffstat (limited to 'cpp/test/Ice/ami/TestI.cpp')
-rw-r--r-- | cpp/test/Ice/ami/TestI.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/cpp/test/Ice/ami/TestI.cpp b/cpp/test/Ice/ami/TestI.cpp index f2dab5afd70..d7aa1d44762 100644 --- a/cpp/test/Ice/ami/TestI.cpp +++ b/cpp/test/Ice/ami/TestI.cpp @@ -93,9 +93,16 @@ TestIntfI::waitForBatch(Ice::Int count, const Ice::Current&) } void -TestIntfI::close(bool force, const Ice::Current& current) +TestIntfI::close(Test::CloseMode mode, const Ice::Current& current) { - current.con->close(force); + current.con->close(static_cast<ConnectionClose>(mode)); +} + +void +TestIntfI::sleep(Ice::Int ms, const Ice::Current& current) +{ + IceUtil::Monitor<IceUtil::Mutex>::Lock sync(*this); + timedWait(IceUtil::Time::milliSeconds(ms)); } void |