summaryrefslogtreecommitdiff
path: root/ace/Timer_Queue_T.i
diff options
context:
space:
mode:
authorschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-26 18:48:06 +0000
committerschmidt <douglascraigschmidt@users.noreply.github.com>1997-04-26 18:48:06 +0000
commit1496689c75876a0b530b5607fb613c69e9e691a0 (patch)
tree7e7bb5e43b96de401923fd3319b9800d586dd78a /ace/Timer_Queue_T.i
parent0ade236d792b248800b2aeefc274e26512ccdfe7 (diff)
downloadATCD-1496689c75876a0b530b5607fb613c69e9e691a0.tar.gz
*** empty log message ***
Diffstat (limited to 'ace/Timer_Queue_T.i')
-rw-r--r--ace/Timer_Queue_T.i25
1 files changed, 25 insertions, 0 deletions
diff --git a/ace/Timer_Queue_T.i b/ace/Timer_Queue_T.i
new file mode 100644
index 00000000000..a69b5b3d284
--- /dev/null
+++ b/ace/Timer_Queue_T.i
@@ -0,0 +1,25 @@
+/* -*- C++ -*- */
+// $Id$
+
+// Timer_Queue_T.i
+
+template <class TYPE, class FUNCTOR> ACE_INLINE void
+ACE_Timer_Queue_T<TYPE, FUNCTOR>::timer_skew (const ACE_Time_Value &skew)
+{
+ timer_skew_ = skew;
+}
+
+template <class TYPE, class FUNCTOR> ACE_INLINE const ACE_Time_Value &
+ACE_Timer_Queue_T<TYPE, FUNCTOR>::timer_skew (void) const
+{
+ return timer_skew_;
+}
+
+template <class TYPE, class FUNCTOR> ACE_INLINE int
+ACE_Timer_Queue_T<TYPE, FUNCTOR>::expire (void)
+{
+ if (!this->is_empty ())
+ return this->expire (this->gettimeofday () + timer_skew_);
+ else
+ return 0;
+}