diff options
author | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-14 07:08:33 +0000 |
---|---|---|
committer | nanbor <nanbor@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1998-09-14 07:08:33 +0000 |
commit | 37981beb729b19337051eb79306b811b1a719641 (patch) | |
tree | 190d855d9e6d4fce16a7d9e2ef883a6c868e9efa /ace/Strategies_T.i | |
parent | 383b1f9f3a1bc9af2305065c4ba80833aaa8ecb4 (diff) | |
download | ATCD-37981beb729b19337051eb79306b811b1a719641.tar.gz |
Added ACE_Thread_Pool_Strategy and AE_Svc_Handler_Pool_Strategy
Diffstat (limited to 'ace/Strategies_T.i')
-rw-r--r-- | ace/Strategies_T.i | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/ace/Strategies_T.i b/ace/Strategies_T.i index 7301dacf910..026d3afc899 100644 --- a/ace/Strategies_T.i +++ b/ace/Strategies_T.i @@ -53,6 +53,30 @@ ACE_Singleton_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) return 0; } +template <class SVC_HANDLER> ASYS_INLINE +ACE_Svc_Handler_Pool_Strategy<SVC_HANDLER>::ACE_Svc_Handler_Pool_Strategy (ACE_Thread_Manager *tm) +{ + ACE_TRACE ("ACE_Svc_Handler_Pool_Strategy<SVC_HANDLER>::ACE_Svc_Handler_Pool_Strategy"); + this->open (tm); +} + +template <class SVC_HANDLER> ASYS_INLINE +ACE_Svc_Handler_Pool_Strategy<SVC_HANDLER>::~ACE_Svc_Handler_Pool_Strategy (void) +{ + ACE_TRACE ("ACE_Svc_Handler_Pool_Strategy<SVC_HANDLER>::~ACE_Svc_Handler_Pool_Strategy"); +} + +// Create a Singleton SVC_HANDLER by always returning the same +// SVC_HANDLER. + +template <class SVC_HANDLER> ASYS_INLINE int +ACE_Svc_Handler_Pool_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) +{ + ACE_TRACE ("ACE_Singleton_Strategy<SVC_HANDLER>::make_svc_handler"); + ACE_NEW_RETURN (sh, SVC_HANDLER, 0); + return 0; +} + template <class SVC_HANDLER> ASYS_INLINE int ACE_Creation_Strategy<SVC_HANDLER>::open (ACE_Thread_Manager *thr_mgr) { @@ -178,6 +202,19 @@ ACE_Thread_Strategy<SVC_HANDLER>::~ACE_Thread_Strategy (void) ACE_TRACE ("ACE_Thread_Strategy<SVC_HANDLER>::~ACE_Thread_Strategy"); } +template <class SVC_HANDLER> ASYS_INLINE +ACE_Thread_Pool_Strategy<SVC_HANDLER>::ACE_Thread_Pool_Strategy (int flags) + : ACE_Concurrency_Strategy<SVC_HANDLER> (flags) +{ + ACE_TRACE ("ACE_Thread_Pool_Strategy<SVC_HANDLER>::ACE_Thread_Strategy"); +} + +template <class SVC_HANDLER> ASYS_INLINE +ACE_Thread_Pool_Strategy<SVC_HANDLER>::~ACE_Thread_Pool_Strategy (void) +{ + ACE_TRACE ("ACE_Thread_Pool_Strategy<SVC_HANDLER>::~ACE_Thread_Pool_Strategy"); +} + template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ASYS_INLINE int ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::open (const ACE_PEER_ACCEPTOR_ADDR &local_addr, int restart) |