summaryrefslogtreecommitdiff
path: root/ACE/ace/Timer_Queue_T.cpp
diff options
context:
space:
mode:
authormcorino <mcorino@users.noreply.github.com>2011-12-14 18:20:31 +0000
committermcorino <mcorino@users.noreply.github.com>2011-12-14 18:20:31 +0000
commitb553caff218594c6cdaedcf1cec68be725a62f21 (patch)
treea0655274254064ffa3f2a6835c84a41ece48a076 /ACE/ace/Timer_Queue_T.cpp
parent01eb039cbc2232bb44b589635d11952e656902fa (diff)
downloadATCD-timer_policy.tar.gz
merged last timer_policy branch updatestimer_policy
Diffstat (limited to 'ACE/ace/Timer_Queue_T.cpp')
-rw-r--r--ACE/ace/Timer_Queue_T.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/ACE/ace/Timer_Queue_T.cpp b/ACE/ace/Timer_Queue_T.cpp
index 86f96bbeb95..d0de6d0c68a 100644
--- a/ACE/ace/Timer_Queue_T.cpp
+++ b/ACE/ace/Timer_Queue_T.cpp
@@ -68,6 +68,12 @@ ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK, TIME_POLICY>::gettimeofday()
return this->gettimeofday_static();
}
+template <class TYPE, class FUNCTOR, class ACE_LOCK, typename TIME_POLICY> void
+ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK, TIME_POLICY>::gettimeofday (ACE_Time_Value (*gettimeofday)(void))
+{
+ this->time_policy_.set_gettimeofday (gettimeofday);
+}
+
template <class TYPE, class FUNCTOR, class ACE_LOCK, typename TIME_POLICY> ACE_Time_Value *
ACE_Timer_Queue_T<TYPE, FUNCTOR, ACE_LOCK, TIME_POLICY>::calculate_timeout (ACE_Time_Value *max_wait_time)
{