summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Cond.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/src/IceE/Cond.cpp')
-rw-r--r--cppe/src/IceE/Cond.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/cppe/src/IceE/Cond.cpp b/cppe/src/IceE/Cond.cpp
index ce5cb0aa86c..0809bac980a 100644
--- a/cppe/src/IceE/Cond.cpp
+++ b/cppe/src/IceE/Cond.cpp
@@ -42,8 +42,7 @@ Ice::Semaphore::wait() const
bool
Ice::Semaphore::timedWait(const Time& timeout) const
{
- timeval tv = timeout;
- long msec = (tv.tv_sec * 1000) + (tv.tv_usec / 1000);
+ long msec = (long)timeout.toMilliSeconds();
int rc = WaitForSingleObject(_sem, msec);
if(rc != WAIT_TIMEOUT && rc != WAIT_OBJECT_0)