NAME
ACE_Timer_Node -
Maintains the state associated with a Timer entry.
SYNOPSIS
#include <ace/Timer_Queue.h>
struct ACE_Timer_Node
{
public:
friend class ACE_Timer_Queue;
private:
ACE_Timer_Node (
ACE_Event_Handler *h,
const void *a,
const ACE_Time_Value &t,
const ACE_Time_Value &i,
ACE_Timer_Node *n,
int timer_id
);
ACE_Event_Handler *handler_;
const void *arg_;
ACE_Time_Value timer_value_;
ACE_Time_Value interval_;
ACE_Timer_Node *next_;
int timer_id_;
ACE_ALLOC_HOOK_DECLARE;
void dump (void) const;
};
PUBLIC MEMBERS
friend class ACE_Timer_Queue;
PRIVATE MEMBERS
ACE_Timer_Node (
ACE_Event_Handler *h,
const void *a,
const ACE_Time_Value &t,
const ACE_Time_Value &i,
ACE_Timer_Node *n,
int timer_id
);
ACE_Event_Handler *handler_;
Handler to invoke handle_timeout on when a timeout occurs.
const void *arg_;
Argument to pass to handle_timeout.
ACE_Time_Value timer_value_;
Time until the timer expires.
ACE_Time_Value interval_;
If this is a periodic timer this holds the time until the next
timeout.
ACE_Timer_Node *next_;
int timer_id_;
Id of this timer (used to cancel timers before they expire).
ACE_ALLOC_HOOK_DECLARE;
Declare the dynamic allocation hooks.
void dump (void) const;
Dump the state of an object.
AUTHOR
Doug Schmidt
LIBRARY
ace