summaryrefslogtreecommitdiff
path: root/cppe/src/IceE/Cond.cpp
diff options
context:
space:
mode:
authorMatthew Newhook <matthew@zeroc.com>2005-07-07 15:27:59 +0000
committerMatthew Newhook <matthew@zeroc.com>2005-07-07 15:27:59 +0000
commit354bd88ca155352b612b450e8ffa9846f8aa1e00 (patch)
treea93276197ad5a3155c04d06a7b4438c8ac8c8981 /cppe/src/IceE/Cond.cpp
parentFixed tests on linux (diff)
downloadice-354bd88ca155352b612b450e8ffa9846f8aa1e00.tar.bz2
ice-354bd88ca155352b612b450e8ffa9846f8aa1e00.tar.xz
ice-354bd88ca155352b612b450e8ffa9846f8aa1e00.zip
http://bugzilla.zeroc.com/bugzilla/show_bug.cgi?id=397
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)