Qore Programming Language Reference Manual  1.0.8
QC_AutoGate.dox.h
1 namespace Qore {
4 namespace Thread {
6 
31 class AutoGate {
32 
33 public:
35 
41  constructor(Gate gate);
42 
43 public:
45 
47  copy();
48 
49 public:
51 
56  destructor();
57 };
58 }
59 }
destructor()
Calls Gate::exit() and destroys the AutoGate object.
The Gate class implements a reentrant thread lock.
Definition: QC_Gate.dox.h:35
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:31
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
copy()
Throws an exception; objects of this class cannot be copied.