diff options
Diffstat (limited to 'ace/Strategies_T.i')
-rw-r--r-- | ace/Strategies_T.i | 105 |
1 files changed, 52 insertions, 53 deletions
diff --git a/ace/Strategies_T.i b/ace/Strategies_T.i index 9a91518d359..41f625a2063 100644 --- a/ace/Strategies_T.i +++ b/ace/Strategies_T.i @@ -1,13 +1,12 @@ // -*- C++ -*- -// // $Id$ -template<class SVC_HANDLER> ASYS_INLINE +template<class SVC_HANDLER> ACE_INLINE ACE_Recycling_Strategy<SVC_HANDLER>::~ACE_Recycling_Strategy (void) { } -template<class SVC_HANDLER> ASYS_INLINE int +template<class SVC_HANDLER> ACE_INLINE int ACE_Recycling_Strategy<SVC_HANDLER>::assign_recycler (SVC_HANDLER *svc_handler, ACE_Connection_Recycling_Strategy *recycler, const void *recycling_act) @@ -16,13 +15,13 @@ ACE_Recycling_Strategy<SVC_HANDLER>::assign_recycler (SVC_HANDLER *svc_handler, return 0; } -template<class SVC_HANDLER> ASYS_INLINE int +template<class SVC_HANDLER> ACE_INLINE int ACE_Recycling_Strategy<SVC_HANDLER>::prepare_for_recycling (SVC_HANDLER *svc_handler) { return svc_handler->recycle (); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Singleton_Strategy<SVC_HANDLER>::ACE_Singleton_Strategy (SVC_HANDLER *sh, ACE_Thread_Manager *tm) : svc_handler_ (0), @@ -35,7 +34,7 @@ ACE_Singleton_Strategy<SVC_HANDLER>::ACE_Singleton_Strategy (SVC_HANDLER *sh, ACE_LIB_TEXT ("ACE_Singleton_Strategy"))); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Singleton_Strategy<SVC_HANDLER>::~ACE_Singleton_Strategy (void) { ACE_TRACE ("ACE_Singleton_Strategy<SVC_HANDLER>::~ACE_Singleton_Strategy"); @@ -46,7 +45,7 @@ ACE_Singleton_Strategy<SVC_HANDLER>::~ACE_Singleton_Strategy (void) // Create a Singleton SVC_HANDLER by always returning the same // SVC_HANDLER. -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Singleton_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) { ACE_TRACE ("ACE_Singleton_Strategy<SVC_HANDLER>::make_svc_handler"); @@ -54,7 +53,7 @@ ACE_Singleton_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) return 0; } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Creation_Strategy<SVC_HANDLER>::open (ACE_Thread_Manager *thr_mgr, ACE_Reactor *reactor) { @@ -64,7 +63,7 @@ ACE_Creation_Strategy<SVC_HANDLER>::open (ACE_Thread_Manager *thr_mgr, return 0; } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Creation_Strategy<SVC_HANDLER>::ACE_Creation_Strategy (ACE_Thread_Manager *thr_mgr, ACE_Reactor *reactor) { @@ -78,7 +77,7 @@ ACE_Creation_Strategy<SVC_HANDLER>::ACE_Creation_Strategy (ACE_Thread_Manager *t // Default behavior is to make a new SVC_HANDLER, passing in the // Thread_Manager (if any). -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Creation_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) { ACE_TRACE ("ACE_Creation_Strategy<SVC_HANDLER>::make_svc_handler"); @@ -89,13 +88,13 @@ ACE_Creation_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&sh) return 0; } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Creation_Strategy<SVC_HANDLER>::~ACE_Creation_Strategy (void) { ACE_TRACE ("ACE_Creation_Strategy<SVC_HANDLER>::~ACE_Creation_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_DLL_Strategy<SVC_HANDLER>::ACE_DLL_Strategy (const char dll_name[], const char factory_function[], const char svc_name[], @@ -113,26 +112,26 @@ ACE_DLL_Strategy<SVC_HANDLER>::ACE_DLL_Strategy (const char dll_name[], ACE_LIB_TEXT ("open"))); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_DLL_Strategy<SVC_HANDLER>::ACE_DLL_Strategy (void) { ACE_TRACE ("ACE_DLL_Strategy<SVC_HANDLER>::ACE_DLL_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Concurrency_Strategy<SVC_HANDLER>::ACE_Concurrency_Strategy (int flags) : flags_ (flags) { ACE_TRACE ("ACE_Concurrency_Strategy<SVC_HANDLER>::~ACE_Concurrency_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Concurrency_Strategy<SVC_HANDLER>::~ACE_Concurrency_Strategy (void) { ACE_TRACE ("ACE_Concurrency_Strategy<SVC_HANDLER>::~ACE_Concurrency_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Reactive_Strategy<SVC_HANDLER>::ACE_Reactive_Strategy (ACE_Reactor *reactor, ACE_Reactor_Mask mask, int flags) @@ -147,7 +146,7 @@ ACE_Reactive_Strategy<SVC_HANDLER>::ACE_Reactive_Strategy (ACE_Reactor *reactor, ACE_LIB_TEXT ("ACE_Reactive_Strategy<SVC_HANDLER>::ACE_Reactive_Strategy"))); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Reactive_Strategy<SVC_HANDLER>::ACE_Reactive_Strategy (int flags) : ACE_Concurrency_Strategy<SVC_HANDLER> (flags), reactor_ (0), @@ -156,13 +155,13 @@ ACE_Reactive_Strategy<SVC_HANDLER>::ACE_Reactive_Strategy (int flags) ACE_TRACE ("ACE_Reactive_Strategy<SVC_HANDLER>::ACE_Reactive_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Reactive_Strategy<SVC_HANDLER>::~ACE_Reactive_Strategy (void) { ACE_TRACE ("ACE_Reactive_Strategy<SVC_HANDLER>::~ACE_Reactive_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Thread_Strategy<SVC_HANDLER>::ACE_Thread_Strategy (ACE_Thread_Manager *thr_mgr, long thr_flags, int n_threads, @@ -179,7 +178,7 @@ ACE_Thread_Strategy<SVC_HANDLER>::ACE_Thread_Strategy (ACE_Thread_Manager *thr_m ACE_LIB_TEXT ("ACE_Thread_Strategy<SVC_HANDLER>::ACE_Thread_Strategy"))); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Thread_Strategy<SVC_HANDLER>::ACE_Thread_Strategy (int flags) : ACE_Concurrency_Strategy<SVC_HANDLER> (flags), thr_mgr_ (0), @@ -189,34 +188,34 @@ ACE_Thread_Strategy<SVC_HANDLER>::ACE_Thread_Strategy (int flags) ACE_TRACE ("ACE_Thread_Strategy<SVC_HANDLER>::ACE_Thread_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Thread_Strategy<SVC_HANDLER>::~ACE_Thread_Strategy (void) { ACE_TRACE ("ACE_Thread_Strategy<SVC_HANDLER>::~ACE_Thread_Strategy"); } -template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ASYS_INLINE +template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ACE_INLINE ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Accept_Strategy (ACE_Reactor *reactor) : reactor_ (reactor) { ACE_TRACE ("ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::ACE_Accept_Strategy"); } -template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ASYS_INLINE ACE_HANDLE +template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ACE_INLINE ACE_HANDLE ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::get_handle (void) const { ACE_TRACE ("ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::get_handle"); return this->peer_acceptor_.get_handle (); } -template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ASYS_INLINE ACE_PEER_ACCEPTOR & +template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ACE_INLINE ACE_PEER_ACCEPTOR & ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::acceptor (void) const { ACE_TRACE ("ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::acceptor"); return (ACE_PEER_ACCEPTOR &) this->peer_acceptor_; } -template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ASYS_INLINE +template <class SVC_HANDLER, ACE_PEER_ACCEPTOR_1> ACE_INLINE ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::~ACE_Accept_Strategy (void) { ACE_TRACE ("ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::~ACE_Accept_Strategy"); @@ -225,26 +224,26 @@ ACE_Accept_Strategy<SVC_HANDLER, ACE_PEER_ACCEPTOR_2>::~ACE_Accept_Strategy (voi this->peer_acceptor_.close (); } -template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ASYS_INLINE ACE_PEER_CONNECTOR & +template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ACE_INLINE ACE_PEER_CONNECTOR & ACE_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::connector (void) const { ACE_TRACE ("ACE_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::connector"); return (ACE_PEER_CONNECTOR &) this->connector_; } -template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ASYS_INLINE +template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ACE_INLINE ACE_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::ACE_Connect_Strategy (void) { ACE_TRACE ("ACE_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::ACE_Connect_Strategy"); } -template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ASYS_INLINE +template <class SVC_HANDLER, ACE_PEER_CONNECTOR_1> ACE_INLINE ACE_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::~ACE_Connect_Strategy (void) { ACE_TRACE ("ACE_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2>::~ACE_Connect_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Process_Strategy<SVC_HANDLER>::ACE_Process_Strategy (size_t n_processes, ACE_Event_Handler *acceptor, ACE_Reactor *reactor, @@ -260,39 +259,39 @@ ACE_Process_Strategy<SVC_HANDLER>::ACE_Process_Strategy (size_t n_processes, ACE_LIB_TEXT ("ACE_Process_Strategy"))); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Process_Strategy<SVC_HANDLER>::~ACE_Process_Strategy (void) { ACE_TRACE ("ACE_Process_Strategy<SVC_HANDLER>::~ACE_Process_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Scheduling_Strategy<SVC_HANDLER>::ACE_Scheduling_Strategy (SVC_HANDLER *) { ACE_TRACE ("ACE_Scheduling_Strategy<SVC_HANDLER>::ACE_Scheduling_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Scheduling_Strategy<SVC_HANDLER>::~ACE_Scheduling_Strategy (void) { ACE_TRACE ("ACE_Scheduling_Strategy<SVC_HANDLER>::~ACE_Scheduling_Strategy"); } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Scheduling_Strategy<SVC_HANDLER>::suspend (void) { ACE_TRACE ("ACE_Scheduling_Strategy<SVC_HANDLER>::suspend"); return -1; } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Scheduling_Strategy<SVC_HANDLER>::resume (void) { ACE_TRACE ("ACE_Scheduling_Strategy<SVC_HANDLER>::resume"); return -1; } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::ACE_Schedule_All_Reactive_Strategy (SVC_HANDLER *scheduler) : ACE_Scheduling_Strategy<SVC_HANDLER> (scheduler) @@ -305,21 +304,21 @@ ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::ACE_Schedule_All_Reactive_Strat this->reactor_ = scheduler->reactor (); } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::suspend (void) { ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::suspend"); return this->reactor_->suspend_handlers (); } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::resume (void) { ACE_TRACE ("ACE_Schedule_All_Reactive_Strategy<SVC_HANDLER>::resume"); return this->reactor_->resume_handlers (); } -template <class SVC_HANDLER> ASYS_INLINE +template <class SVC_HANDLER> ACE_INLINE ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::ACE_Schedule_All_Threaded_Strategy (SVC_HANDLER *scheduler) : ACE_Scheduling_Strategy<SVC_HANDLER> (scheduler) @@ -332,21 +331,21 @@ ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::ACE_Schedule_All_Threaded_Strat this->thr_mgr_ = scheduler->thr_mgr (); } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::suspend (void) { ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::suspend"); return this->thr_mgr_->suspend_all (); } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::resume (void) { ACE_TRACE ("ACE_Schedule_All_Threaded_Strategy<SVC_HANDLER>::resume"); return this->thr_mgr_->resume_all (); } -template <class T> ASYS_INLINE +template <class T> ACE_INLINE ACE_Refcounted_Hash_Recyclable<T>::ACE_Refcounted_Hash_Recyclable (void) : ACE_Refcountable (0), ACE_Hashable (), @@ -355,7 +354,7 @@ ACE_Refcounted_Hash_Recyclable<T>::ACE_Refcounted_Hash_Recyclable (void) { } -template <class T> ASYS_INLINE +template <class T> ACE_INLINE ACE_Refcounted_Hash_Recyclable<T>::ACE_Refcounted_Hash_Recyclable (const T &t, int refcount, ACE_Recyclable_State state) @@ -366,24 +365,24 @@ ACE_Refcounted_Hash_Recyclable<T>::ACE_Refcounted_Hash_Recyclable (const T &t, { } -template <class T> ASYS_INLINE +template <class T> ACE_INLINE ACE_Refcounted_Hash_Recyclable<T>::~ACE_Refcounted_Hash_Recyclable (void) { } -template <class T> ASYS_INLINE u_long +template <class T> ACE_INLINE u_long ACE_Refcounted_Hash_Recyclable<T>::hash_i (void) const { return this->t_.hash (); } -template <class T> ASYS_INLINE T & +template <class T> ACE_INLINE T & ACE_Refcounted_Hash_Recyclable<T>::subject (void) { return this->t_; } -template <class T> ASYS_INLINE bool +template <class T> ACE_INLINE bool ACE_Refcounted_Hash_Recyclable<T>::operator== (const ACE_Refcounted_Hash_Recyclable<T> &rhs) const { return @@ -391,20 +390,20 @@ ACE_Refcounted_Hash_Recyclable<T>::operator== (const ACE_Refcounted_Hash_Recycla && this->t_ == rhs.t_; } -template <class T> ASYS_INLINE bool +template <class T> ACE_INLINE bool ACE_Refcounted_Hash_Recyclable<T>::operator!= (const ACE_Refcounted_Hash_Recyclable<T> &rhs) const { return !this->operator== (rhs); } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_NOOP_Creation_Strategy<SVC_HANDLER>::make_svc_handler (SVC_HANDLER *&) { ACE_TRACE ("ACE_NOOP_Creation_Strategy<SVC_HANDLER>::make_svc_handler"); return 0; } -template <class SVC_HANDLER> ASYS_INLINE int +template <class SVC_HANDLER> ACE_INLINE int ACE_NOOP_Concurrency_Strategy<SVC_HANDLER>::activate_svc_handler (SVC_HANDLER *, void *) { @@ -412,21 +411,21 @@ ACE_NOOP_Concurrency_Strategy<SVC_HANDLER>::activate_svc_handler (SVC_HANDLER *, return 0; } -template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ASYS_INLINE int +template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ACE_INLINE int ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::make_svc_handler (SVC_HANDLER *&sh) { return this->creation_strategy_->make_svc_handler (sh); } -template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ASYS_INLINE int +template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ACE_INLINE int ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::activate_svc_handler (SVC_HANDLER *svc_handler) { return this->concurrency_strategy_->activate_svc_handler (svc_handler); } -template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ASYS_INLINE int +template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ACE_INLINE int ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::assign_recycler (SVC_HANDLER *svc_handler, ACE_Connection_Recycling_Strategy *recycler, @@ -437,7 +436,7 @@ ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::assign_re recycling_act); } -template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ASYS_INLINE int +template<class SVC_HANDLER, ACE_PEER_CONNECTOR_1, class MUTEX> ACE_INLINE int ACE_Cached_Connect_Strategy<SVC_HANDLER, ACE_PEER_CONNECTOR_2, MUTEX>::prepare_for_recycling (SVC_HANDLER *svc_handler) { |