#include <thread.h>
Public Member Functions | |
auto_protect (void *object) | |
Construct a protected pointer referencing an existing object. | |
~auto_protect () | |
Delete protected pointer. | |
void | release (void) |
Manually release the pointer. | |
bool | operator! () const |
Test if the pointer is not set. | |
operator bool () const | |
Test if the pointer is referencing an object. | |
void | operator= (void *object) |
Set our pointer to a specific object. | |
Protected Attributes | |
void * | object |
This is particularly useful in referencing objects which will be protected by the mutex protect function. When the pointer falls out of scope, the protecting mutex is also released. This is meant to be used by the typed mutex_pointer template.
Definition at line 1257 of file thread.h.
ucc::auto_protect::auto_protect | ( | void * | object | ) |
ucc::auto_protect::~auto_protect | ( | ) |
ucc::auto_protect::operator bool | ( | ) | const [inline] |
bool ucc::auto_protect::operator! | ( | ) | const [inline] |
void ucc::auto_protect::operator= | ( | void * | object | ) |