diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2002-04-15 06:52:03 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2002-04-15 06:52:03 +0000 |
commit | ac161666b9bc4241656c90665395cbcf83327d2a (patch) | |
tree | 337d88749073f4e754ef23f5a982ddd1289b8b19 /examples | |
parent | d5c0853531b27028584ef77a51446315b4e047d2 (diff) | |
download | ATCD-ac161666b9bc4241656c90665395cbcf83327d2a.tar.gz |
ChangeLogTag: Mon Apr 15 08:48:12 2002 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'examples')
-rw-r--r-- | examples/Makefile.bor | 3 | ||||
-rw-r--r-- | examples/Timer_Queue/Async_Timer_Queue_Test.bor | 20 | ||||
-rw-r--r-- | examples/Timer_Queue/Makefile.bor | 7 | ||||
-rw-r--r-- | examples/Timer_Queue/Reactor_Timer_Queue_Test.bor | 20 | ||||
-rw-r--r-- | examples/Timer_Queue/Thread_Timer_Queue_Test.bor | 20 | ||||
-rw-r--r-- | examples/Timer_Queue/main_async.cpp | 12 | ||||
-rw-r--r-- | examples/Timer_Queue/main_reactor.cpp | 2 | ||||
-rw-r--r-- | examples/Timer_Queue/main_thread.cpp | 2 |
8 files changed, 77 insertions, 9 deletions
diff --git a/examples/Makefile.bor b/examples/Makefile.bor index 92f1e1b9d1e..6e2fe9a31a5 100644 --- a/examples/Makefile.bor +++ b/examples/Makefile.bor @@ -15,6 +15,7 @@ DIRS = \ RMCast \ Service_Configurator \ Synch \ - Threads + Threads \ + Timer_Queue !include <$(ACE_ROOT)\include\makeinclude\recurse.bor> diff --git a/examples/Timer_Queue/Async_Timer_Queue_Test.bor b/examples/Timer_Queue/Async_Timer_Queue_Test.bor new file mode 100644 index 00000000000..58cd8b4fed9 --- /dev/null +++ b/examples/Timer_Queue/Async_Timer_Queue_Test.bor @@ -0,0 +1,20 @@ +# +# Makefile for building the Async_Timer_Queue_Test example +# + +NAME = main_async + +OBJFILES = \ + $(OBJDIR)\Async_Timer_Queue_Test.obj \ + $(OBJDIR)\main_async.obj + +CPPDIR = . + +LIBFILES = \ + $(ACE_LIB) + +CFLAGS = \ + $(ACE_CFLAGS) + +!include <$(ACE_ROOT)\include\makeinclude\build_exe.bor> + diff --git a/examples/Timer_Queue/Makefile.bor b/examples/Timer_Queue/Makefile.bor new file mode 100644 index 00000000000..f3f828d4fa1 --- /dev/null +++ b/examples/Timer_Queue/Makefile.bor @@ -0,0 +1,7 @@ +# +# Makefile for building the Timer_Queue examples +# + +MAKEFILES = Async_Timer_Queue_Test.bor Reactor_Timer_Queue_Test.bor Thread_Timer_Queue_Test.bor + +!include <$(ACE_ROOT)\include\makeinclude\recurse.bor> diff --git a/examples/Timer_Queue/Reactor_Timer_Queue_Test.bor b/examples/Timer_Queue/Reactor_Timer_Queue_Test.bor new file mode 100644 index 00000000000..bb261850e7b --- /dev/null +++ b/examples/Timer_Queue/Reactor_Timer_Queue_Test.bor @@ -0,0 +1,20 @@ +# +# Makefile for building the Reactor_Timer_Queue_Test example +# + +NAME = main_reactor + +OBJFILES = \ + $(OBJDIR)\Reactor_Timer_Queue_Test.obj \ + $(OBJDIR)\main_reactor.obj + +CPPDIR = . + +LIBFILES = \ + $(ACE_LIB) + +CFLAGS = \ + $(ACE_CFLAGS) + +!include <$(ACE_ROOT)\include\makeinclude\build_exe.bor> + diff --git a/examples/Timer_Queue/Thread_Timer_Queue_Test.bor b/examples/Timer_Queue/Thread_Timer_Queue_Test.bor new file mode 100644 index 00000000000..0d329d02f62 --- /dev/null +++ b/examples/Timer_Queue/Thread_Timer_Queue_Test.bor @@ -0,0 +1,20 @@ +# +# Makefile for building the Thread_Timer_Queue_Test example +# + +NAME = main_thread + +OBJFILES = \ + $(OBJDIR)\Thread_Timer_Queue_Test.obj \ + $(OBJDIR)\main_thread.obj + +CPPDIR = . + +LIBFILES = \ + $(ACE_LIB) + +CFLAGS = \ + $(ACE_CFLAGS) + +!include <$(ACE_ROOT)\include\makeinclude\build_exe.bor> + diff --git a/examples/Timer_Queue/main_async.cpp b/examples/Timer_Queue/main_async.cpp index eb9c33881e9..03d5d84c2f9 100644 --- a/examples/Timer_Queue/main_async.cpp +++ b/examples/Timer_Queue/main_async.cpp @@ -4,9 +4,9 @@ // // = LIBRARY // examples -// +// // = FILENAME -// main_async.cpp +// main_async.cpp // // = DESCRIPTION // Implements an asynchronous timer queue. @@ -15,8 +15,8 @@ // // = AUTHORS // Douglas Schmidt <schmidt@cs.wustl.edu> && -// Sergio Flores-Gaitan <sergio@cs.wustl.edu> -// +// Sergio Flores-Gaitan <sergio@cs.wustl.edu> +// // ============================================================================ #include "ace/Auto_Ptr.h" @@ -31,14 +31,14 @@ typedef Timer_Queue_Test_Driver<Async_Timer_Queue *, ASYNC_TIMER_QUEUE_TEST_DRIVER; int -main (int, char *[]) +ACE_TMAIN (int, ACE_TCHAR *[]) { ASYNC_TIMER_QUEUE_TEST_DRIVER *tqtd; ACE_NEW_RETURN (tqtd, Async_Timer_Queue_Test_Driver, -1); // 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 9b955b6f476..f19550cd000 100644 --- a/examples/Timer_Queue/main_reactor.cpp +++ b/examples/Timer_Queue/main_reactor.cpp @@ -31,7 +31,7 @@ typedef Timer_Queue_Test_Driver <ACE_Timer_Heap, REACTOR_TIMER_QUEUE_TEST_DRIVER; int -main (int, char *[]) +ACE_TMAIN (int, ACE_TCHAR *[]) { REACTOR_TIMER_QUEUE_TEST_DRIVER *tqtd; ACE_NEW_RETURN (tqtd, Reactor_Timer_Queue_Test_Driver, -1); diff --git a/examples/Timer_Queue/main_thread.cpp b/examples/Timer_Queue/main_thread.cpp index f83db59169e..b158eff397d 100644 --- a/examples/Timer_Queue/main_thread.cpp +++ b/examples/Timer_Queue/main_thread.cpp @@ -31,7 +31,7 @@ typedef Timer_Queue_Test_Driver<Thread_Timer_Queue, THREAD_TIMER_QUEUE_TEST_DRIVER; int -main (int, char *[]) +ACE_TMAIN (int, ACE_TCHAR *[]) { // Auto ptr ensures that the driver memory is released // automatically. |