diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-21 15:55:41 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-11-21 15:55:41 +0000 |
commit | 74b953f078e525defc7672c58d6291a7c7f3b15f (patch) | |
tree | 3fb9d91c94013084361617a1cee11945c1600e6e /ace/Strategies_T.h | |
parent | 7f8fa700f29b02601674453dd89694d0ed117f8f (diff) | |
download | ATCD-74b953f078e525defc7672c58d6291a7c7f3b15f.tar.gz |
*** empty log message ***
Diffstat (limited to 'ace/Strategies_T.h')
-rw-r--r-- | ace/Strategies_T.h | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/ace/Strategies_T.h b/ace/Strategies_T.h index 6cdbff9b659..4079b62d202 100644 --- a/ace/Strategies_T.h +++ b/ace/Strategies_T.h @@ -196,6 +196,9 @@ class ACE_Concurrency_Strategy // object via multi-threading or multi-processing). { public: + ACE_Concurrency_Strategy (int flags = 0); + // Constructor + // = Factory method. virtual int activate_svc_handler (SVC_HANDLER *svc_handler, void *arg = 0); @@ -211,6 +214,12 @@ public: ACE_ALLOC_HOOK_DECLARE; // Declare the dynamic allocation hooks. + +protected: + + int flags_; + // Flags that are parsed to set options for the connected + // <SVC_HANDLER>. }; template <class SVC_HANDLER> @@ -225,7 +234,7 @@ class ACE_Reactive_Strategy : public ACE_Concurrency_Strategy <SVC_HANDLER> { public: // = Intialization and termination methods. - ACE_Reactive_Strategy (void); + ACE_Reactive_Strategy (int flags = 0); // "Do-nothing constructor" ACE_Reactive_Strategy (ACE_Reactor *reactor, @@ -262,10 +271,6 @@ protected: ACE_Reactor_Mask mask_; // The mask that we pass to the <Reactor> when we register the // <SVC_HANDLER>. - - int flags_; - // Flags that are parsed to set options for the connected - // <SVC_HANDLER>. }; template <class SVC_HANDLER> @@ -283,17 +288,19 @@ class ACE_Thread_Strategy : public ACE_Concurrency_Strategy<SVC_HANDLER> { public: // = Intialization and termination methods. - ACE_Thread_Strategy (void); + ACE_Thread_Strategy (int flags = 0); // "Do-nothing constructor" ACE_Thread_Strategy (ACE_Thread_Manager *tm, long thr_flags, - size_t n_threads = 1); + size_t n_threads = 1, + int flags = 0); // Initialize the strategy. virtual int open (ACE_Thread_Manager *tm, long thr_flags, - size_t n_threads = 1); + size_t n_threads = 1, + int flags = 0); // Initialize the strategy. virtual ~ACE_Thread_Strategy (void); @@ -343,12 +350,14 @@ public: ACE_Process_Strategy (size_t n_processes = 1, ACE_Event_Handler *acceptor = 0, - ACE_Reactor * = 0); + ACE_Reactor * = 0, + int flags = 0); // Initialize the strategy. virtual int open (size_t n_processes = 1, ACE_Event_Handler *acceptor = 0, - ACE_Reactor * = 0); + ACE_Reactor * = 0, + int flag = 0); // Initialize the strategy. virtual ~ACE_Process_Strategy (void); |