1) ACE_Thread_Timer_Queue_Adapter类的几个关键方法
调度定时器方法
/// Schedule the timer according to the semantics of the <TQ>; wakes
/// up the dispatching thread.
long schedule (ACE_Event_Handler *handler,
const void *act,
const ACE_Time_Value &future_time,
const ACE_Time_Value &interval = ACE_Time_Value::zero);
/// Cancel the @a timer_id and return the @a act parameter if an
/// address is passed in. Also wakes up the dispatching thread.
int cancel (long timer_id, const void **act = 0);
/// Runs the dispatching thread.
virtual int svc (void);
/// Inform the dispatching thread that it should terminate.
virtual void deactivate (void);
/**
* Block until there are no more threads running in this task.
* This method will not wait for either detached or daemon threads;
* the threads m