ACE 8.0.0
|
A version of ACE_Thread_Exit that is created dynamically under the hood if the flag is set to TRUE. More...
#include <Thread_Exit.h>
Public Member Functions | |
ACE_Thread_Exit_Maybe (int flag=0) | |
Don't create an ACE_Thread_Exit instance by default. | |
~ACE_Thread_Exit_Maybe () | |
Destroys the underlying ACE_Thread_Exit instance if it exists. | |
ACE_Thread_Exit * | operator-> () const |
Delegates to underlying instance. | |
ACE_Thread_Exit * | instance () const |
Returns the underlying instance. | |
Private Attributes | |
ACE_Thread_Exit * | instance_ |
Holds the underlying instance. | |
A version of ACE_Thread_Exit that is created dynamically under the hood if the flag is set to TRUE.
Allows the appearance of a "smart pointer", but is not always created.
ACE_Thread_Exit_Maybe::ACE_Thread_Exit_Maybe | ( | int | flag = 0 | ) |
Don't create an ACE_Thread_Exit instance by default.
ACE_Thread_Exit_Maybe::~ACE_Thread_Exit_Maybe | ( | ) |
Destroys the underlying ACE_Thread_Exit instance if it exists.
ACE_Thread_Exit * ACE_Thread_Exit_Maybe::instance | ( | ) | const |
Returns the underlying instance.
ACE_Thread_Exit * ACE_Thread_Exit_Maybe::operator-> | ( | ) | const |
Delegates to underlying instance.
|
private |
Holds the underlying instance.