Contains a method to be applied when a thread is terminated. More...
#include <Thread_Manager.h>


Public Member Functions | |
| ACE_At_Thread_Exit (void) | |
| Default constructor. | |
| virtual | ~ACE_At_Thread_Exit (void) |
| The destructor. | |
| bool | is_owner (void) const |
| At_Thread_Exit has the ownership? | |
| bool | is_owner (bool owner) |
| Set the ownership of the At_Thread_Exit. | |
| bool | was_applied (void) const |
| This At_Thread_Exit was applied? | |
| bool | was_applied (bool applied) |
| Set applied state of At_Thread_Exit. | |
Protected Member Functions | |
| void | do_apply (void) |
| Do the apply if necessary. | |
| virtual void | apply (void)=0 |
| The apply method. | |
Protected Attributes | |
| ACE_At_Thread_Exit * | next_ |
| The next At_Thread_Exit hook in the list. | |
| ACE_Thread_Descriptor * | td_ |
| The Thread_Descriptor where this at is registered. | |
| bool | was_applied_ |
| The at was applied? | |
| bool | is_owner_ |
| The at has the ownership of this? | |
Friends | |
| class | ACE_Thread_Descriptor |
| class | ACE_Thread_Manager |
Contains a method to be applied when a thread is terminated.
Definition at line 89 of file Thread_Manager.h.
| ACE_At_Thread_Exit::ACE_At_Thread_Exit | ( | void | ) |
Default constructor.
Definition at line 8 of file Thread_Manager.inl.
: next_ (0), td_ (0), was_applied_ (false), is_owner_ (true) { }
| virtual ACE_At_Thread_Exit::~ACE_At_Thread_Exit | ( | void | ) | [virtual] |
The destructor.
| virtual void ACE_At_Thread_Exit::apply | ( | void | ) | [protected, pure virtual] |
The apply method.
Implemented in ACE_At_Thread_Exit_Func.
| void ACE_At_Thread_Exit::do_apply | ( | void | ) | [protected] |
Do the apply if necessary.
Definition at line 45 of file Thread_Manager.inl.
{
if (!this->was_applied_ && this->is_owner_)
td_->at_pop();
}
| bool ACE_At_Thread_Exit::is_owner | ( | bool | owner | ) |
Set the ownership of the At_Thread_Exit.
Definition at line 38 of file Thread_Manager.inl.
| bool ACE_At_Thread_Exit::is_owner | ( | void | ) | const |
At_Thread_Exit has the ownership?
Definition at line 32 of file Thread_Manager.inl.
{
return is_owner_;
}
| bool ACE_At_Thread_Exit::was_applied | ( | void | ) | const |
This At_Thread_Exit was applied?
Definition at line 17 of file Thread_Manager.inl.
{
return was_applied_;
}
| bool ACE_At_Thread_Exit::was_applied | ( | bool | applied | ) |
Set applied state of At_Thread_Exit.
Definition at line 23 of file Thread_Manager.inl.
{
was_applied_ = applied;
if (was_applied_)
td_ = 0;
return was_applied_;
}
friend class ACE_Thread_Descriptor [friend] |
Definition at line 91 of file Thread_Manager.h.
friend class ACE_Thread_Manager [friend] |
Definition at line 92 of file Thread_Manager.h.
bool ACE_At_Thread_Exit::is_owner_ [protected] |
The at has the ownership of this?
Definition at line 129 of file Thread_Manager.h.
ACE_At_Thread_Exit* ACE_At_Thread_Exit::next_ [protected] |
The next At_Thread_Exit hook in the list.
Definition at line 114 of file Thread_Manager.h.
ACE_Thread_Descriptor* ACE_At_Thread_Exit::td_ [protected] |
The Thread_Descriptor where this at is registered.
Definition at line 123 of file Thread_Manager.h.
bool ACE_At_Thread_Exit::was_applied_ [protected] |
The at was applied?
Definition at line 126 of file Thread_Manager.h.
1.7.0