summaryrefslogtreecommitdiff
path: root/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp
diff options
context:
space:
mode:
authorsma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-07-30 14:44:22 +0000
committersma <sma@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2007-07-30 14:44:22 +0000
commit50c729f6a63d449e729aa9030af55d0e0fb6712d (patch)
treee61a42793ac0e374325e4498a6ae330efeeb73cb /ACE/tests/Timer_Queue_Reference_Counting_Test.cpp
parentc27bbdb7f01766b7d62b2f5024d43915342e7803 (diff)
downloadATCD-50c729f6a63d449e729aa9030af55d0e0fb6712d.tar.gz
ChangeLogTag: Mon Jul 30 14:45:00 UTC 2007 Simon Massey <sma@prismtech.com>
Diffstat (limited to 'ACE/tests/Timer_Queue_Reference_Counting_Test.cpp')
-rw-r--r--ACE/tests/Timer_Queue_Reference_Counting_Test.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp b/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp
index 08fbe99698a..7b36fd5f115 100644
--- a/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp
+++ b/ACE/tests/Timer_Queue_Reference_Counting_Test.cpp
@@ -337,7 +337,7 @@ expire (ACE_Timer_Queue &timer_queue,
ACE_Time_Value (1));
ACE_ASSERT (timer_id != -1);
- timer_id =
+ result =
timer_queue.schedule (handler,
two_second_timeout,
ACE_Time_Value (2) + timer_queue.gettimeofday ());
@@ -370,6 +370,8 @@ expire (ACE_Timer_Queue &timer_queue,
i += result;
}
+
+ timer_queue.cancel (timer_id, 0, 0);
}
template<class TIMER_QUEUE>