Go to the documentation of this file.
28 #ifndef LATTICES_LATTICELOCKER_H
29 #define LATTICES_LATTICELOCKER_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/lattices/Lattices/LatticeBase.h>
35 #include <casacore/tables/Tables/TableLock.h>
Class to hold a (user) lock on a lattice.
LatticeLocker(LatticeBase &lattice, FileLocker::LockType, uInt nattempts=0)
The constructor acquires a read or write lock on a lattice.
LockType
Define the possible lock types.
~LatticeLocker()
If the constructor acquired the lock, the destructor releases the lock and flushes the data if change...
Bool hasLock(FileLocker::LockType) const
Has this process the read or write lock, thus can the table be read or written safely?
LatticeBase * itsLatticePtr
virtual Bool hasLock(FileLocker::LockType) const
A non-templated, abstract base class for array-like objects.
LatticeLocker & operator=(const LatticeLocker &)
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.