Go to the documentation of this file.
28 #ifndef TABLES_TABLELOCK_H
29 #define TABLES_TABLELOCK_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/casa/IO/LockFile.h>
Bool itsIsDefaultInterval
void init()
Set itsOption and itsReadLocking when needed.
LockOption
Define the possible table locking options.
The table is permanently locked.
Bool isPermanent() const
Is permanent locking used?
double interval() const
Get the inspection interval.
uInt maxWait() const
Get the maximum wait period in AutoLocking mode.
The system takes care of acquiring/releasing locks.
static Bool lockingDisabled()
Is table locking disabled (because AIPS_TABLE_NOLOCKING or table.nolocking is set)?
This is the default locking option.
TableLock(LockOption option=DefaultLocking)
Construct with given option and interval.
Bool readLocking() const
Is read locking needed?
The user is taking care of locking the table by means of the Table functions lock and unlock.
LockOption option() const
Get the locking option.
Class to hold table lock options.
this file contains all the compiler specific defines
TableLock & operator=(const TableLock &that)
Assignment.
void merge(const TableLock &that)
Merge that TableLock with this TableLock object by taking the maximum option and minimum inspection i...
The system takes care of acquiring/releasing locks.
bool Bool
Define the standard types used by Casacore.
The user is taking care of locking the table by means of the Table functions lock and unlock.
Do not do any locking at all.
The same as above, but the table constructor waits until the lock gets available.