--- a/eapol/eapol_framework/eapol_common/am/common/eap_timer_queue.cpp Thu Aug 19 09:58:27 2010 +0300
+++ b/eapol/eapol_framework/eapol_common/am/common/eap_timer_queue.cpp Tue Aug 31 15:16:37 2010 +0300
@@ -16,7 +16,7 @@
*/
/*
-* %version: 14.1.2 %
+* %version: %
*/
// This is enumeration of EAPOL source code.
@@ -424,6 +424,16 @@
deactivate_timer_queue();
+ trace_timer();
+
+ EAP_TRACE_TIMER(
+ m_am_tools,
+ TRACE_FLAGS_TIMER_QUEUE,
+ (EAPL("TIMER: eap_timer_queue_c::~eap_timer_queue_c(): m_timer_queue=0x%08x, m_new_event_begin=0x%08x, m_new_event_end=0x%08x\n"),
+ m_timer_queue,
+ m_new_event_begin,
+ m_new_event_end));
+
// cancel_all_timers() must be called before destructor.
EAP_ASSERT_TOOLS(m_am_tools, m_timer_queue == 0);
EAP_ASSERT_TOOLS(m_am_tools, m_new_event_begin == 0);
@@ -689,10 +699,10 @@
if (current != 0)
{
- EAP_TRACE_TIMER(
+ EAP_TRACE_DEBUG(
m_am_tools,
TRACE_FLAGS_DEFAULT,
- (EAPL("TIMER: timer_expired(): [0x%08x]->initializer(0x%08x)->timer_expired(")
+ (EAPL("TIMER: eap_timer_queue_c::timer_expired(): [0x%08x]->initializer(0x%08x)->timer_expired(")
EAPL("id 0x%02x, data 0x%08x, original time %8d)\n"),
current,
current->get_initializer(),
@@ -1270,10 +1280,10 @@
event->get_time_ms()));
// Adds the new event to the end of the list to keep the order of events correct.
- EAP_ASSERT(m_new_event_begin == 0
- && m_new_event_end == 0
- || m_new_event_begin != 0
- && m_new_event_end != 0);
+ EAP_ASSERT((m_new_event_begin == 0
+ && m_new_event_end == 0)
+ || (m_new_event_begin != 0
+ && m_new_event_end != 0));
if (m_new_event_begin == 0
&& m_new_event_end == 0)
@@ -1343,6 +1353,16 @@
return EAP_STATUS_RETURN(m_am_tools, eap_status_allocation_error);
}
+ EAP_TRACE_DEBUG(
+ m_am_tools,
+ TRACE_FLAGS_DEFAULT,
+ (EAPL("TIMER: eap_timer_queue_c::set_timer(): [0x%08x]->initializer(0x%08x)->set_timer(")
+ EAPL("id 0x%02x, data 0x%08x, original time %8d)\n"),
+ event,
+ event->get_initializer(),
+ event->get_id(),
+ event->get_data(),
+ event->get_original_time()));
if (m_use_eap_millisecond_timer == true)
{
@@ -1438,6 +1458,17 @@
m_new_event_end = previous;
}
+ EAP_TRACE_DEBUG(
+ m_am_tools,
+ TRACE_FLAGS_DEFAULT,
+ (EAPL("TIMER: eap_timer_queue_c::cancel_pending_timer(): [0x%08x]->initializer(0x%08x)->cancel_pending_timer(")
+ EAPL("id 0x%02x, data 0x%08x, original time %8d)\n"),
+ remove,
+ remove->get_initializer(),
+ remove->get_id(),
+ remove->get_data(),
+ remove->get_original_time()));
+
remove->set_next(0);
delete remove;
@@ -1505,14 +1536,15 @@
while(cursor != 0)
{
- EAP_TRACE_TIMER(
+ EAP_TRACE_DEBUG(
m_am_tools,
- TRACE_FLAGS_TIMER,
- (EAPL("TIMER: [0x%08x] cancel_timer(initializer 0x%08x, ")
- EAPL("id 0x%02x, original time %8d)\n"),
+ TRACE_FLAGS_DEFAULT,
+ (EAPL("TIMER: eap_timer_queue_c::cancel_timer(): [0x%08x]->initializer(0x%08x)->cancel_timer(")
+ EAPL("id 0x%02x, data 0x%08x, original time %8d)\n"),
cursor,
- initializer,
- id,
+ cursor->get_initializer(),
+ cursor->get_id(),
+ cursor->get_data(),
cursor->get_original_time()));
if (cursor == m_timer_queue)
@@ -1677,11 +1709,16 @@
while (cursor != 0)
{
- EAP_TRACE_TIMER(
+ EAP_TRACE_DEBUG(
m_am_tools,
- TRACE_FLAGS_TIMER,
- (EAPL("TIMER: [0x%08x] cancel_all_timers()\n"),
- cursor));
+ TRACE_FLAGS_DEFAULT,
+ (EAPL("TIMER: eap_timer_queue_c::cancel_all_timers(): [0x%08x]->initializer(0x%08x)->cancel_all_timers(")
+ EAPL("id 0x%02x, data 0x%08x, original time %8d)\n"),
+ cursor,
+ cursor->get_initializer(),
+ cursor->get_id(),
+ cursor->get_data(),
+ cursor->get_original_time()));
eap_timer_queue_event_c *next = cursor->get_next_same_time();