// $Id$ /* -*- C++ -*- */ template ACE_INLINE void ACE_Timer_Node_T::set (const TYPE &type, const void *a, const ACE_Time_Value &t, const ACE_Time_Value &i, ACE_Timer_Node_T *n, long timer_id) { this->type_ = type; this->act_ = a; this->timer_value_ = t; this->interval_ = i; this->next_ = n; this->timer_id_ = timer_id; } template ACE_INLINE void ACE_Timer_Node_T::set (const TYPE &type, const void *a, const ACE_Time_Value &t, const ACE_Time_Value &i, ACE_Timer_Node_T *p, ACE_Timer_Node_T *n, long timer_id) { this->type_ = type; this->act_ = a; this->timer_value_ = t; this->interval_ = i; this->prev_ = p; this->next_ = n; this->timer_id_ = timer_id; } template ACE_INLINE TYPE & ACE_Timer_Node_T::get_type (void) { return this->type_; } template ACE_INLINE void ACE_Timer_Node_T::set_type (TYPE &type) { this->type_ = type; } template ACE_INLINE const void * ACE_Timer_Node_T::get_act (void) { return this->act_; } template ACE_INLINE void ACE_Timer_Node_T::set_act (void *act) { this->act_ = act; } template ACE_INLINE ACE_Time_Value & ACE_Timer_Node_T::get_timer_value (void) { return this->timer_value_; } template ACE_INLINE void ACE_Timer_Node_T::set_timer_value (ACE_Time_Value timer_value) { this->timer_value_ = timer_value; } template ACE_INLINE ACE_Time_Value & ACE_Timer_Node_T::get_interval (void) { return this->interval_; } template ACE_INLINE void ACE_Timer_Node_T::set_interval (ACE_Time_Value interval) { this->interval_ = interval; } template ACE_INLINE ACE_Timer_Node_T * ACE_Timer_Node_T::get_prev (void) { return this->prev_; } template ACE_INLINE void ACE_Timer_Node_T::set_prev (ACE_Timer_Node_T *prev) { this->prev_ = prev; } template ACE_INLINE ACE_Timer_Node_T * ACE_Timer_Node_T::get_next (void) { return this->next_; } template ACE_INLINE void ACE_Timer_Node_T::set_next (ACE_Timer_Node_T *next) { this->next_ = next; } template ACE_INLINE long ACE_Timer_Node_T::get_timer_id (void) { return this->timer_id_; } template ACE_INLINE void ACE_Timer_Node_T::set_timer_id (long timer_id) { this->timer_id_ = timer_id; } template ACE_INLINE void ACE_Timer_Queue_T::timer_skew (const ACE_Time_Value &skew) { timer_skew_ = skew; } template ACE_INLINE const ACE_Time_Value & ACE_Timer_Queue_T::timer_skew (void) const { return timer_skew_; } template ACE_INLINE int ACE_Timer_Queue_T::expire (void) { if (!this->is_empty ()) return this->expire (this->gettimeofday () + timer_skew_); else return 0; } template ACE_INLINE void ACE_Timer_Queue_T::upcall (TYPE &type, const void *act, const ACE_Time_Value &cur_time) { this->upcall_functor ().timeout (*this, type, act, cur_time); } template ACE_INLINE ACE_Time_Value ACE_Timer_Queue_T::gettimeofday (void) { // Invoke gettimeofday via pointer to function. return this->gettimeofday_ (); } template ACE_INLINE void ACE_Timer_Queue_T::gettimeofday (ACE_Time_Value (*gettimeofday)(void)) { this->gettimeofday_ = gettimeofday; } template ACE_INLINE ACE_LOCK & ACE_Timer_Queue_T::mutex (void) { return this->mutex_; } template ACE_INLINE FUNCTOR & ACE_Timer_Queue_T::upcall_functor (void) { return *this->upcall_functor_; }