|
ACE
6.3.4
|
Defines the interface for specifying a creation strategy for a SVC_HANDLER that always returns the same SVC_HANDLER (i.e., it's a Singleton). More...
#include <Strategies_T.h>


Public Types | |
| typedef ACE_Creation_Strategy< SVC_HANDLER > | base_type |
Public Types inherited from ACE_Creation_Strategy< SVC_HANDLER > | |
| typedef SVC_HANDLER::addr_type | addr_type |
| typedef SVC_HANDLER | handler_type |
| typedef SVC_HANDLER::stream_type | stream_type |
Public Member Functions | |
| ACE_Singleton_Strategy (SVC_HANDLER *=0, ACE_Thread_Manager *=0) | |
| int | open (SVC_HANDLER *, ACE_Thread_Manager *=0) |
| virtual | ~ACE_Singleton_Strategy (void) |
| virtual int | make_svc_handler (SVC_HANDLER *&) |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Member Functions inherited from ACE_Creation_Strategy< SVC_HANDLER > | |
| ACE_Creation_Strategy (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance()) | |
| Default constructor. More... | |
| int | open (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance()) |
| virtual | ~ACE_Creation_Strategy (void) |
| void | dump (void) const |
| Dump the state of an object. More... | |
Public Attributes | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Public Attributes inherited from ACE_Creation_Strategy< SVC_HANDLER > | |
| ACE_ALLOC_HOOK_DECLARE | |
| Declare the dynamic allocation hooks. More... | |
Protected Attributes | |
| SVC_HANDLER * | svc_handler_ |
| Pointer to the Singleton svc_handler. More... | |
| bool | delete_svc_handler_ |
| Keep track of whether we need to delete the SVC_HANDLER. More... | |
Protected Attributes inherited from ACE_Creation_Strategy< SVC_HANDLER > | |
| ACE_Thread_Manager * | thr_mgr_ |
| Pointer to a thread manager. More... | |
| ACE_Reactor * | reactor_ |
| Pointer to an ACE_Reactor. More... | |
Defines the interface for specifying a creation strategy for a SVC_HANDLER that always returns the same SVC_HANDLER (i.e., it's a Singleton).
Note that this class takes over the ownership of the SVC_HANDLER passed into it as a parameter and it becomes responsible for deleting this object.
| typedef ACE_Creation_Strategy<SVC_HANDLER> ACE_Singleton_Strategy< SVC_HANDLER >::base_type |
|
inline |
|
virtual |
| void ACE_Singleton_Strategy< SVC_HANDLER >::dump | ( | void | ) | const |
Dump the state of an object.
|
virtual |
Create a Singleton SVC_HANDLER by always returning the same SVC_HANDLER. Returns -1 on failure, else 0.
Reimplemented from ACE_Creation_Strategy< SVC_HANDLER >.
| int ACE_Singleton_Strategy< SVC_HANDLER >::open | ( | SVC_HANDLER * | sh, |
| ACE_Thread_Manager * | = 0 |
||
| ) |
| ACE_Singleton_Strategy< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE |
Declare the dynamic allocation hooks.
|
protected |
Keep track of whether we need to delete the SVC_HANDLER.
|
protected |
Pointer to the Singleton svc_handler.
1.8.9.1