Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
QC_AutoGate.dox.h
1 namespace Qore::Thread {
4 
29 class AutoGate {
30 
31 public:
33 
39  constructor(Gate gate);
40 
41 public:
43 
45  copy();
46 
47 public:
49 
54  destructor();
55 };
56 };
destructor()
Calls Gate::exit() and destroys the AutoGate object.
The Gate class implements a reentrant thread lock.
Definition: QC_Gate.dox.h:24
constructor(Gate gate)
Creates the AutoGate object based on the Gate argument passed and immediately calls Gate::enter() ...
A helper class for the Gate class for exception-safe Gate handling.
Definition: QC_AutoGate.dox.h:29
copy()
Throws an exception; objects of this class cannot be copied.