Qore Programming Language Reference Manual  0.8.9
 All Classes Namespaces Functions Variables Groups Pages
QC_AutoWriteLock.dox.h
1 namespace Qore::Thread {
4 
30 
31 public:
33 
43  constructor(RWLock rwl);
44 
45 public:
47 
49  copy();
50 
51 public:
53 
60  destructor();
61 };
62 };
copy()
Throws an exception; objects of this class cannot be copied.
A helper class for the RWLock class for exception-safe write lock handling.
Definition: QC_AutoWriteLock.dox.h:29
constructor(RWLock rwl)
Creates the AutoWriteLock object based on the RWLock argument passed and immediately calls RWLock::wr...
The RWLock class implements a read-write thread lock.
Definition: QC_RWLock.dox.h:31
destructor()
Calls RWLock::writeUnlock() on the saved RWLock and destroys the AutoWriteLock object.