From 219ae584c43856583338728bbe27a045191f70ae Mon Sep 17 00:00:00 2001 From: Erik Sohns Date: Mon, 30 May 2016 00:18:45 +0200 Subject: reuse current timestamp to compute wait delay --- ACE/ace/Timer_Queue_Adapters.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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::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); -- cgit v1.2.1