summaryrefslogtreecommitdiff
path: root/cpp/test/IceUtil/thread/MonitorMutexTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/IceUtil/thread/MonitorMutexTest.cpp')
-rw-r--r--cpp/test/IceUtil/thread/MonitorMutexTest.cpp8
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);