diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-02 23:19:51 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-11-02 23:19:51 +0000 |
commit | ef08e40a4ca020201fbe271acd6505e9d57a4ec8 (patch) | |
tree | 0f3b1f0784091ff690ed1e1075248b09e76fb4ae /examples/Timer_Queue | |
parent | fe2654b0d176fb2e80143e237d92b3a955155e98 (diff) | |
download | ATCD-ef08e40a4ca020201fbe271acd6505e9d57a4ec8.tar.gz |
*** empty log message ***
Diffstat (limited to 'examples/Timer_Queue')
-rw-r--r-- | examples/Timer_Queue/main_async.cpp | 8 | ||||
-rw-r--r-- | examples/Timer_Queue/main_reactor.cpp | 8 | ||||
-rw-r--r-- | examples/Timer_Queue/main_thread.cpp | 5 |
3 files changed, 8 insertions, 13 deletions
diff --git a/examples/Timer_Queue/main_async.cpp b/examples/Timer_Queue/main_async.cpp index 238df6f749e..1888adcb4d7 100644 --- a/examples/Timer_Queue/main_async.cpp +++ b/examples/Timer_Queue/main_async.cpp @@ -31,13 +31,11 @@ typedef Timer_Queue_Test_Driver<Async_Timer_Queue *, int main (int, char *[]) { - // Auto ptr ensures that the driver memory is released - // automatically. - auto_ptr <ASYNC_TIMER_QUEUE_TEST_DRIVER> driver; ASYNC_TIMER_QUEUE_TEST_DRIVER *tqtd; - ACE_NEW_RETURN (tqtd, Async_Timer_Queue_Test_Driver, -1); - driver = tqtd; + // Auto ptr ensures that the driver memory is released + // automatically. + auto_ptr <ASYNC_TIMER_QUEUE_TEST_DRIVER> driver (tqtd); return driver->run_test (); } diff --git a/examples/Timer_Queue/main_reactor.cpp b/examples/Timer_Queue/main_reactor.cpp index d60498a577f..45576c4b4a0 100644 --- a/examples/Timer_Queue/main_reactor.cpp +++ b/examples/Timer_Queue/main_reactor.cpp @@ -31,13 +31,11 @@ typedef Timer_Queue_Test_Driver <ACE_Timer_Heap, int main (int, char *[]) { - // Auto ptr ensures that the driver memory is released - // automatically. - auto_ptr <REACTOR_TIMER_QUEUE_TEST_DRIVER> driver; REACTOR_TIMER_QUEUE_TEST_DRIVER *tqtd; - ACE_NEW_RETURN (tqtd, Reactor_Timer_Queue_Test_Driver, -1); - driver = tqtd; + // Auto ptr ensures that the driver memory is released + // automatically. + auto_ptr <REACTOR_TIMER_QUEUE_TEST_DRIVER> driver (tqtd); return driver->run_test (); } diff --git a/examples/Timer_Queue/main_thread.cpp b/examples/Timer_Queue/main_thread.cpp index 1eb5b61bbc1..a6311294b9b 100644 --- a/examples/Timer_Queue/main_thread.cpp +++ b/examples/Timer_Queue/main_thread.cpp @@ -33,11 +33,10 @@ main (int, char *[]) { // Auto ptr ensures that the driver memory is released // automatically. - auto_ptr <THREAD_TIMER_QUEUE_TEST_DRIVER> driver; THREAD_TIMER_QUEUE_TEST_DRIVER *tqtd; - ACE_NEW_RETURN (tqtd, Thread_Timer_Queue_Test_Driver, -1); - driver = tqtd; + + auto_ptr <THREAD_TIMER_QUEUE_TEST_DRIVER> driver (tqtd); return driver->run_test (); } |