diff options
author | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
---|---|---|
committer | nobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-01-01 08:00:34 +0000 |
commit | d9661aebab28abc0ec4fb1e716170d347d56c168 (patch) | |
tree | ecb671ab4b8e299bf5cbb8b2dfeed8a49b65fc06 /examples/Service_Configurator/Misc/Timer_Service.cpp | |
parent | ea0d28240863caf437a18071bfd03e7b146c5ade (diff) | |
download | ATCD-unlabeled-4.3.2.tar.gz |
This commit was manufactured by cvs2svn to create branchunlabeled-4.3.2
'unlabeled-4.3.2'.
Diffstat (limited to 'examples/Service_Configurator/Misc/Timer_Service.cpp')
-rw-r--r-- | examples/Service_Configurator/Misc/Timer_Service.cpp | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/examples/Service_Configurator/Misc/Timer_Service.cpp b/examples/Service_Configurator/Misc/Timer_Service.cpp deleted file mode 100644 index 8852df4b78c..00000000000 --- a/examples/Service_Configurator/Misc/Timer_Service.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "Timer_Service.h" -// $Id$ - -int -Timer_Service::init (int argc, char *argv[]) -{ - int interval = argc > 1 ? ACE_OS::atoi (argv[1]) : 4; - - if (argc > 2) - ACE_Trace::start_tracing (); - else - ACE_Trace::stop_tracing (); - - ACE_DEBUG ((LM_DEBUG, - "in Timer_Service::init, argv[0] = %s, argc == %d\n", - argv[0], argc)); - - ACE_Service_Config::reactor ()->schedule_timer - (this, 0, ACE_Time_Value (1), ACE_Time_Value (interval)); - return 0; -} - -int -Timer_Service::handle_timeout (const ACE_Time_Value &tv, - const void *) -{ - ACE_DEBUG ((LM_DEBUG, - "in Timer_Service::handle_timeout sec = %d, usec = %d\n", - tv.sec (), tv.usec ())); - return 0; -} - -// Define the factory function. -ACE_SVC_FACTORY_DEFINE (Timer_Service) - -// Define the object that describes the service. -ACE_STATIC_SVC_DEFINE (Timer_Service, - "Timer_Service", ACE_SVC_OBJ_T, &ACE_SVC_NAME (Timer_Service), - ACE_Service_Type::DELETE_THIS | ACE_Service_Type::DELETE_OBJ, 0) - |