2 //=============================================================================
6 * Implements an asynchronous timer queue.
7 * This code exercises the Timer_Queue_Test_Driver class using
8 * signals as an asynchronous mechanism to dispatch events.
10 * @author Douglas Schmidt <d.schmidt@vanderbilt.edu> && Sergio Flores-Gaitan <sergio@cs.wustl.edu>
12 //=============================================================================
14 #include "ace/OS_main.h"
16 #include "Async_Timer_Queue_Test.h"
19 typedef Timer_Queue_Test_Driver
<Async_Timer_Queue
*,
21 Async_Timer_Queue::ACTION
>
22 ASYNC_TIMER_QUEUE_TEST_DRIVER
;
25 ACE_TMAIN (int, ACE_TCHAR
*[])
27 ASYNC_TIMER_QUEUE_TEST_DRIVER
*tqtd
;
28 ACE_NEW_RETURN (tqtd
, Async_Timer_Queue_Test_Driver
, -1);
29 // unique ptr ensures that the driver memory is released
31 std::unique_ptr
<ASYNC_TIMER_QUEUE_TEST_DRIVER
> driver (tqtd
);
33 return driver
->run_test ();