2 //=============================================================================
4 * @file main_reactor.cpp
6 * Implements an reactive timer queue.
7 * This code exercises the Timer_Queue_Test_Driver class using
10 * @author Douglas Schmidt <d.schmidt@vanderbilt.edu> && Sergio Flores-Gaitan <sergio@cs.wustl.edu>
12 //=============================================================================
14 #include "ace/OS_main.h"
15 #include "Reactor_Timer_Queue_Test.h"
19 typedef Timer_Queue_Test_Driver
<ACE_Timer_Heap
,
21 Input_Handler::ACTION
>
22 REACTOR_TIMER_QUEUE_TEST_DRIVER
;
25 ACE_TMAIN (int, ACE_TCHAR
*[])
27 REACTOR_TIMER_QUEUE_TEST_DRIVER
*tqtd
;
28 ACE_NEW_RETURN (tqtd
, Reactor_Timer_Queue_Test_Driver
, -1);
29 // unique ptr ensures that the driver memory is released
31 std::unique_ptr
<REACTOR_TIMER_QUEUE_TEST_DRIVER
> driver (tqtd
);
33 return driver
->run_test ();