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 49 of file destruction_guard.h.
| actionlib::DestructionGuard::DestructionGuard |
( |
| ) |
|
|
inline |
| void actionlib::DestructionGuard::destruct |
( |
| ) |
|
|
inline |
| 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 70 of file destruction_guard.h.
| void actionlib::DestructionGuard::unprotect |
( |
| ) |
|
|
inline |
| boost::condition actionlib::DestructionGuard::count_condition_ |
|
private |
| bool actionlib::DestructionGuard::destructing_ |
|
private |
| boost::mutex actionlib::DestructionGuard::mutex_ |
|
private |
| int actionlib::DestructionGuard::use_count_ |
|
private |
The documentation for this class was generated from the following file: