28 #ifndef CASA_FILELOCKER_H
29 #define CASA_FILELOCKER_H
Bool itsReadLocked
temporary for SUSE 6.1
Bool release()
Release a lock.
int lastError() const
Get the last error.
Class to handle file locking.
LatticeExprNode length(const LatticeExprNode &expr, const LatticeExprNode &axis)
2-argument function to get the length of an axis.
bool Bool
Define the standard types used by Casacore.
String lastMessage() const
Get the message belonging to the last error.
Bool canLock(LockType=Write)
Test if the file can be locked for read or write.
FileLocker()
Default constructor creates an invalid fd.
String: the storage and methods of handling collections of characters.
Bool hasLock(LockType=Write) const
Test if the process has a lock for read or write on the file.
LockType
Define the possible lock types.
int fd() const
Get the fd in use.
Bool acquire(LockType=Write, uInt nattempts=0)
Acquire a write or read lock.