diff options
author | Chris Cleeland <chris.cleeland@gmail.com> | 1997-06-12 21:03:15 +0000 |
---|---|---|
committer | Chris Cleeland <chris.cleeland@gmail.com> | 1997-06-12 21:03:15 +0000 |
commit | dbfcf522bef9952f55ddc33d0875cc076a5bd643 (patch) | |
tree | 356a9925ff402d348aea75b1df66786d44c461f8 /ace/Timer_Queue_T.cpp | |
parent | 66802b11e27564e81c83afdb0bc03e51f6f9204e (diff) | |
download | ATCD-dbfcf522bef9952f55ddc33d0875cc076a5bd643.tar.gz |
Quick changes to fix bugs.
Diffstat (limited to 'ace/Timer_Queue_T.cpp')
-rw-r--r-- | ace/Timer_Queue_T.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ace/Timer_Queue_T.cpp b/ace/Timer_Queue_T.cpp index ecba1017b41..b959ccdda90 100644 --- a/ace/Timer_Queue_T.cpp +++ b/ace/Timer_Queue_T.cpp @@ -95,8 +95,13 @@ ACE_Timer_Queue_T<TYPE, FUNCTOR, LOCK>::calculate_timeout (ACE_Time_Value *max_w return 0; if (this->is_empty ()) - // Nothing on the Timer_Queue, so use whatever the caller gave us. - *the_timeout = *max_wait_time; + { + // Nothing on the Timer_Queue, so use whatever the caller gave us. + if (max_wait_time) + *the_timeout = *max_wait_time; + else + return 0; + } else { ACE_Time_Value cur_time = this->gettimeofday (); |