diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-06-18 04:24:05 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1999-06-18 04:24:05 +0000 |
commit | 4cd5829cade7b6f2af1ee9053fb768d1b8513892 (patch) | |
tree | 146521721fea6011d1b889dcfc0bc05777d15f3f /netsvcs | |
parent | 7cb1865388a3a00eef4f8dbe0bfac433df35d7ee (diff) | |
download | ATCD-4cd5829cade7b6f2af1ee9053fb768d1b8513892.tar.gz |
.
Diffstat (limited to 'netsvcs')
-rw-r--r-- | netsvcs/lib/Server_Logging_Handler.cpp | 6 | ||||
-rw-r--r-- | netsvcs/lib/Server_Logging_Handler.h | 57 |
2 files changed, 35 insertions, 28 deletions
diff --git a/netsvcs/lib/Server_Logging_Handler.cpp b/netsvcs/lib/Server_Logging_Handler.cpp index 346f1ad2da3..ded5a2d321f 100644 --- a/netsvcs/lib/Server_Logging_Handler.cpp +++ b/netsvcs/lib/Server_Logging_Handler.cpp @@ -19,6 +19,7 @@ ACE_SVC_FACTORY_DEFINE (ACE_Thr_Server_Logging_Acceptor) #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) template class Log_Message_Receiver_Impl<ACE_NULL_SYNCH>; +#if defined (ACE_HAS_THREADS) template class Static_Log_Message_Receiver<ACE_NULL_SYNCH>; template class ACE_Acceptor<Null_Synch_Logging_Handler_Static_Receiver, LOGGING_PEER_ACCEPTOR>; template class ACE_Accept_Strategy<Null_Synch_Logging_Handler_Static_Receiver, LOGGING_PEER_ACCEPTOR>; @@ -36,7 +37,7 @@ template class ACE_Server_Logging_Handler<Null_Synch_Static_Receiver>; template class Base_Optimizer<Null_Synch_Static_Receiver, ACE_CString>; template class Base_Optimizer<Null_Synch_Static_Receiver, ACE_Schedule_All_Reactive_Strategy<Null_Synch_Logging_Handler_Static_Receiver> >; #endif /* ! (ACE_HAS_BROKEN_HPUX_TEMPLATES) && ! (__GNUG__) */ - +#endif /* ACE_HAS_THREADS */ template class Static_Log_Message_Receiver<ACE_LOGGER_SYNCH>; template class Log_Message_Receiver<ACE_LOGGER_SYNCH>; @@ -125,6 +126,7 @@ template class ACE_Thr_Server_Logging_Handler<Synch_Receiver>; #endif /* ACE_HAS_TLI */ #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) #pragma instantiate Log_Message_Receiver_Impl<ACE_NULL_SYNCH> +#if defined (ACE_HAS_THREADS) #pragma instantiate Static_Log_Message_Receiver<ACE_NULL_SYNCH> #pragma instantiate ACE_Acceptor<Null_Synch_Logging_Handler_Static_Receiver, LOGGING_PEER_ACCEPTOR> #pragma instantiate ACE_Accept_Strategy<Null_Synch_Logging_Handler_Static_Receiver, LOGGING_PEER_ACCEPTOR> @@ -142,7 +144,7 @@ template class ACE_Thr_Server_Logging_Handler<Synch_Receiver>; #pragma instantiate Base_Optimizer<Null_Synch_Static_Receiver, ACE_CString> #pragma instantiate Base_Optimizer<Null_Synch_Static_Receiver, ACE_Schedule_All_Reactive_Strategy<Null_Synch_Logging_Handler_Static_Receiver> > #endif /* ! (ACE_HAS_BROKEN_HPUX_TEMPLATES) && ! (__GNUG__) */ - +#endif /* ACE_HAS_THREADS */ #pragma instantiate Static_Log_Message_Receiver<ACE_LOGGER_SYNCH> #pragma instantiate Log_Message_Receiver<ACE_LOGGER_SYNCH> diff --git a/netsvcs/lib/Server_Logging_Handler.h b/netsvcs/lib/Server_Logging_Handler.h index 3f20c55dbfa..26b79d178f9 100644 --- a/netsvcs/lib/Server_Logging_Handler.h +++ b/netsvcs/lib/Server_Logging_Handler.h @@ -10,7 +10,7 @@ // Server_Logging_Handler.h // // = AUTHOR -// Doug Schmidt and Per Andersson +// Doug Schmidt and Per Andersson <Per.Andersson@hfera.ericsson.se> // // ============================================================================ @@ -20,69 +20,74 @@ #include "Log_Message_Receiver.h" #include "Server_Logging_Handler_T.h" -// typedefs for Logging Handlers & acceptors using a static -// type based log message receivers. +// Typedefs for Logging Handlers & acceptors using a static type based +// log message receivers. // Synched and NULL synched message receivers -typedef Static_Log_Message_Receiver<ACE_NULL_SYNCH> Null_Synch_Static_Receiver; -typedef Static_Log_Message_Receiver<ACE_LOGGER_SYNCH> Synch_Static_Receiver; +typedef Static_Log_Message_Receiver<ACE_NULL_SYNCH> + Null_Synch_Static_Receiver; +typedef Static_Log_Message_Receiver<ACE_LOGGER_SYNCH> + Synch_Static_Receiver; // NULL synched logging handler -typedef ACE_Server_Logging_Handler<Null_Synch_Static_Receiver> Null_Synch_Logging_Handler_Static_Receiver; +typedef ACE_Server_Logging_Handler<Null_Synch_Static_Receiver> + Null_Synch_Logging_Handler_Static_Receiver; // synched logging handlers -typedef ACE_Server_Logging_Handler<Synch_Static_Receiver> Synch_Logging_Handler_Static_Receiver; -typedef ACE_Thr_Server_Logging_Handler<Synch_Static_Receiver> Synch_Thr_Logging_Handler_Static_Receiver; +typedef ACE_Server_Logging_Handler<Synch_Static_Receiver> + Synch_Logging_Handler_Static_Receiver; +typedef ACE_Thr_Server_Logging_Handler<Synch_Static_Receiver> + Synch_Thr_Logging_Handler_Static_Receiver; // NULL synched logging acceptor typedef ACE_Server_Logging_Acceptor_T<Null_Synch_Logging_Handler_Static_Receiver, Null_Synch_Static_Receiver, ACE_Schedule_All_Reactive_Strategy<Null_Synch_Logging_Handler_Static_Receiver> > - Null_Synch_Logging_Handler_Static_Receiver_Acceptor; + Null_Synch_Logging_Handler_Static_Receiver_Acceptor; // NULL synched logging acceptors typedef ACE_Server_Logging_Acceptor_T<Synch_Logging_Handler_Static_Receiver, Synch_Static_Receiver, ACE_Schedule_All_Reactive_Strategy<Synch_Logging_Handler_Static_Receiver> > - Synch_Logging_Handler_Static_Receiver_Acceptor; + Synch_Logging_Handler_Static_Receiver_Acceptor; typedef ACE_Server_Logging_Acceptor_T<Synch_Thr_Logging_Handler_Static_Receiver, Synch_Static_Receiver, ACE_Schedule_All_Threaded_Strategy<Synch_Thr_Logging_Handler_Static_Receiver> > - Synch_Thr_Logging_Handler_Static_Receiver_Acceptor; + Synch_Thr_Logging_Handler_Static_Receiver_Acceptor; -// typedefs for Logging Handlers & acceptors using a instance -// based log message receivers. +// typedefs for Logging Handlers & acceptors using a instance based +// log message receivers. // Synched message receivers -typedef Log_Message_Receiver<ACE_LOGGER_SYNCH> Synch_Receiver; +typedef Log_Message_Receiver<ACE_LOGGER_SYNCH> + Synch_Receiver; // synched logging handlers -typedef ACE_Server_Logging_Handler<Synch_Receiver> Synch_Logging_Handler_Receiver; -typedef ACE_Thr_Server_Logging_Handler<Synch_Receiver> Synch_Thr_Logging_Handler_Receiver; +typedef ACE_Server_Logging_Handler<Synch_Receiver> + Synch_Logging_Handler_Receiver; +typedef ACE_Thr_Server_Logging_Handler<Synch_Receiver> + Synch_Thr_Logging_Handler_Receiver; // synched logging acceptors typedef ACE_Server_Logging_Acceptor_T<Synch_Logging_Handler_Receiver, Synch_Receiver, ACE_Schedule_All_Reactive_Strategy<Synch_Logging_Handler_Receiver> > - Synch_Logging_Handler_Receiver_Acceptor; + Synch_Logging_Handler_Receiver_Acceptor; typedef ACE_Server_Logging_Acceptor_T<Synch_Thr_Logging_Handler_Receiver, Synch_Receiver, ACE_Schedule_All_Threaded_Strategy<Synch_Thr_Logging_Handler_Receiver> > - Synch_Thr_Logging_Handler_Receiver_Acceptor; + Synch_Thr_Logging_Handler_Receiver_Acceptor; // Define external acceptors -// acceptors that use static/type based log message receiver -typedef Null_Synch_Logging_Handler_Static_Receiver_Acceptor ACE_Server_Logging_Acceptor; -typedef Synch_Thr_Logging_Handler_Static_Receiver_Acceptor ACE_Thr_Server_Logging_Acceptor; - -// acceptors that use instance based log message receiver -//typedef Synch_Logging_Handler_Receiver_Acceptor ACE_Server_Logging_Acceptor; -//typedef Synch_Thr_Logging_Handler_Receiver_Acceptor ACE_Thr_Server_Logging_Acceptor; - +// Acceptors that use static/type based log message receiver. +typedef Null_Synch_Logging_Handler_Static_Receiver_Acceptor + ACE_Server_Logging_Acceptor; +typedef Synch_Thr_Logging_Handler_Static_Receiver_Acceptor + ACE_Thr_Server_Logging_Acceptor; ACE_SVC_FACTORY_DECLARE (ACE_Server_Logging_Acceptor) ACE_SVC_FACTORY_DECLARE (ACE_Thr_Server_Logging_Acceptor) |