Qore Programming Language Reference Manual  1.0.8
QC_AutoReadLock.dox.h
1 namespace Qore {
4 namespace Thread {
6 
31 class AutoReadLock {
32 
33 public:
35 
45  constructor(RWLock rwl);
46 
47 public:
49 
51  copy();
52 
53 public:
55 
62  destructor();
63 };
64 }
65 }
constructor(RWLock rwl)
Creates the AutoReadLock object based on the RWLock argument passed and immediately calls RWLock::rea...
copy()
Throws an exception; objects of this class cannot be copied.
destructor()
Calls RWLock::readUnlock() on the saved RWLock and destroys the AutoReadLock object.
The RWLock class implements a read-write thread lock.
Definition: QC_RWLock.dox.h:40
main Qore-language namespace
Definition: Pseudo_QC_All.dox.h:3
A helper class for the RWLock class for exception-safe read lock handling.
Definition: QC_AutoReadLock.dox.h:31