summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Sohns <eriksohns@123mail.org>2016-05-30 00:18:45 +0200
committerErik Sohns <eriksohns@123mail.org>2016-05-30 00:18:45 +0200
commit219ae584c43856583338728bbe27a045191f70ae (patch)
treebe7aeda1a972439e9618f187419237c3785cdccc
parentdee50e84e5e3d18f727c0257b85c37fb68e73e0e (diff)
downloadATCD-219ae584c43856583338728bbe27a045191f70ae.tar.gz
reuse current timestamp to compute wait delay
-rw-r--r--ACE/ace/Timer_Queue_Adapters.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ACE/ace/Timer_Queue_Adapters.cpp b/ACE/ace/Timer_Queue_Adapters.cpp
index b2ccf1a2168..a56bc9a21e5 100644
--- a/ACE/ace/Timer_Queue_Adapters.cpp
+++ b/ACE/ace/Timer_Queue_Adapters.cpp
@@ -276,7 +276,7 @@ ACE_Thread_Timer_Queue_Adapter<TQ, TYPE>::svc (void)
{
// The earliest time on the Timer_Queue lies in future;
// convert the tv to an absolute time.
- ACE_Time_Value const tv = this->timer_queue_->gettimeofday () + (tv_earl - tv_curr);
+ ACE_Time_Value const tv = tv_curr + (tv_earl - tv_curr);
// ACELIB_DEBUG ((LM_DEBUG, ACE_TEXT ("waiting until %u.%3.3u secs\n"),
// tv.sec(), tv.msec()));
this->condition_.wait (&tv);