Bayonne2 / Common C++ 2 Framework
|
A class to automatically set the thread cancellation mode of a member function. More...
#include <thread.h>
Public Member Functions | |
Cancellation (Thread::Cancel cancel) | |
~Cancellation () | |
Private Attributes | |
Thread::Cancel | prior |
A class to automatically set the thread cancellation mode of a member function.
When the member function returns and the automatic variable falls out of scope, the previous thread cancellation mode is restored.
Cancellation::Cancellation | ( | Thread::Cancel | cancel | ) |
Cancellation::~Cancellation | ( | ) |
|
private |