A concrete class for cleanup jobs that take a function with two arguments. More...
#include <util.h>
Public Member Functions | |
~guardImpl2 () | |
Destructor calls the cleanup function of the base class. | |
Public Member Functions inherited from ibis::util::guardBase | |
void | dismiss () const |
Tell the guard that it does not need to invoke clean up function any more. More... | |
Static Public Member Functions | |
static guardImpl2< F, A1, A2 > | makeGuard (F f, A1 a1, A2 a2) |
Protected Member Functions | |
void | execute () |
guardImpl2 (F f, A1 a1, A2 a2) | |
Construct a guard object from a function. | |
Protected Member Functions inherited from ibis::util::guardBase | |
guardBase (const guardBase &rhs) | |
!< Default constructor. More... | |
~guardBase () | |
Destructor. No need to be virtual. | |
Friends | |
class | guardBase |
Additional Inherited Members | |
Static Protected Member Functions inherited from ibis::util::guardBase | |
template<typename T > | |
static void | cleanup (T &task) throw () |
A template to invoke the function registered. More... | |
Protected Attributes inherited from ibis::util::guardBase | |
volatile bool | done_ |
A concrete class for cleanup jobs that take a function with two arguments.