#include <mcllib/MCFileMutex.h>
Inheritance diagram for MCFileMutex:
Public Member Functions | |
virtual void | lock () |
Lock the file. | |
MCFileMutex (const MCString &fileName, const MCByteRegion ®ion=MCByteRegion()) | |
Construct from fileName. | |
MCFileMutex (const MCFile &file, const MCByteRegion ®ion=MCByteRegion()) | |
Construct from an MCFile. | |
virtual bool | testLock () |
Try and lock the file. | |
virtual void | unlock () |
Unlock the file. | |
virtual | ~MCFileMutex () |
Destructor. |
Obtains a lock on a file object.
|
Destructor. Unlock if the file is locked |
|
Lock the file. Blocks until the file can be locked Implements MCMutex. |
|
Try and lock the file. If successful (and the file is now locked), return true, otherwise return false Implements MCTestMutex. |