diff options
author | Marc Laukien <marc@zeroc.com> | 2002-05-19 14:09:12 +0000 |
---|---|---|
committer | Marc Laukien <marc@zeroc.com> | 2002-05-19 14:09:12 +0000 |
commit | 1f7c6e248a10a585dd36b8b4d40031bf4b330632 (patch) | |
tree | 02ef6a50010d533ee0e8ba489de37d8adf311b2b /cpp/test/IceUtil/thread/MonitorMutexTest.cpp | |
parent | sleep now takes IceUtil::Time (diff) | |
download | ice-1f7c6e248a10a585dd36b8b4d40031bf4b330632.tar.bz2 ice-1f7c6e248a10a585dd36b8b4d40031bf4b330632.tar.xz ice-1f7c6e248a10a585dd36b8b4d40031bf4b330632.zip |
sleep now takes IceUtil::Time
Diffstat (limited to 'cpp/test/IceUtil/thread/MonitorMutexTest.cpp')
-rw-r--r-- | cpp/test/IceUtil/thread/MonitorMutexTest.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cpp/test/IceUtil/thread/MonitorMutexTest.cpp b/cpp/test/IceUtil/thread/MonitorMutexTest.cpp index 69e26b7c367..7f3e59cea70 100644 --- a/cpp/test/IceUtil/thread/MonitorMutexTest.cpp +++ b/cpp/test/IceUtil/thread/MonitorMutexTest.cpp @@ -145,15 +145,15 @@ MonitorMutexTest::run() control2 = t3->start(); // Give the thread time to start waiting. - ThreadControl::sleep(1000); - + ThreadControl::sleep(Time::seconds(1)); + { Monitor<Mutex>::Lock lock(monitor); monitor.notify(); } // Give one thread time to terminate - ThreadControl::sleep(1000); + ThreadControl::sleep(Time::seconds(1)); test((t2->finished && !t3->finished) || (t3->finished && !t2->finished)); @@ -171,7 +171,7 @@ MonitorMutexTest::run() control2 = t3->start(); // Give the threads time to start waiting. - ThreadControl::sleep(1000); + ThreadControl::sleep(Time::seconds(1)); { Monitor<Mutex>::Lock lock(monitor); |