1 #include "ace/Log_Msg.h"
3 #include "PTimerDispatcher.h"
7 ACE_TRACE ("PCB::PCB");
14 int PCB::handleEvent (const void *arg
)
16 ACE_TRACE ("PCB::handleEvent");
18 const int *val
= static_cast<const int*> (arg
);
19 ACE_ASSERT ((*val
) == timerID_
);
24 ACE_TEXT("Timer %d expiry handled by thread %t\n"),
29 ACE_TEXT ("Reseting interval for timer %d\n"),
32 // New interval is 10 ms.
33 ACE_Time_Value
interval (0L, 1000L);
34 if (PTimer::instance ()->reset_interval (timerID_
, interval
) != -1)
35 ACE_ERROR_RETURN ((LM_ERROR
,
37 ACE_TEXT ("reset_interval")),
43 ACE_DEBUG ((LM_DEBUG
, ACE_TEXT ("Canceling %d\n"),
45 PTimer::instance ()->cancel (this);
52 PCB::setID (long timerID
)
54 ACE_TRACE ("PCB::setID");
61 ACE_TRACE ("PCB::getID");
68 ACE_TRACE ("PCB::handleClose");
75 ACE_TRACE ("PCB::handleCancel");