This class protects an object from being destructed until all users of that object relinquish control of it.
More...
#include <destruction_guard.h>
This class protects an object from being destructed until all users of that object relinquish control of it.
Definition at line 84 of file destruction_guard.h.
◆ DestructionGuard()
actionlib::DestructionGuard::DestructionGuard |
( |
| ) |
|
|
inline |
◆ destruct()
void actionlib::DestructionGuard::destruct |
( |
| ) |
|
|
inline |
◆ tryProtect()
bool actionlib::DestructionGuard::tryProtect |
( |
| ) |
|
|
inline |
Attempts to protect the guarded object from being destructed.
- Returns
- True if protection succeeded, false if protection failed
Definition at line 105 of file destruction_guard.h.
◆ unprotect()
void actionlib::DestructionGuard::unprotect |
( |
| ) |
|
|
inline |
◆ count_condition_
boost::condition actionlib::DestructionGuard::count_condition_ |
|
private |
◆ destructing_
bool actionlib::DestructionGuard::destructing_ |
|
private |
◆ mutex_
boost::mutex actionlib::DestructionGuard::mutex_ |
|
private |
◆ use_count_
int actionlib::DestructionGuard::use_count_ |
|
private |
The documentation for this class was generated from the following file: