28 #ifndef CASA_FILELOCKER_H
29 #define CASA_FILELOCKER_H
33 #include <casacore/casa/aips.h>
Bool canLock(uInt &pid, LockType=Write)
int lastError() const
Get the last error.
Bool itsReadLocked
temporary for SUSE 6.1
Bool canLock(LockType=Write)
Test if the file can be locked for read or write.
Bool release()
Release a lock.
int fd() const
Get the fd in use.
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.
@ Write
Acquire a write lock.
@ Read
Acquire a read lock.
String lastMessage() const
Get the message belonging to the last error.
Bool acquire(LockType=Write, uInt nattempts=0)
Acquire a write or read lock.
FileLocker(int fd, uInt start=0, uInt length=0)
Construct the FileLocker object for the given file descriptor.
FileLocker()
Default constructor creates an invalid fd.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
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.