8 #ifndef MFileSystem_InprocessFileLocker_h 9 #define MFileSystem_InprocessFileLocker_h 62 #if defined(__IBMCPP__) || defined(WIN64) || defined(__GNUG__) 74 lpBaseClass->operator=(irReturnPtr);
84 #if defined(__IBMCPP__) || defined(WIN64) || defined(__GNUG__) 96 lpBaseClass->operator=(irReturnPtr);
100 if (bInProcessLock_NoWait)
102 bool lbReturn =
Get()->LockWithTimeOut();
104 throw (
"MFileSystem::InprocessFileLocker::LockPtr::Assign() failed to get the InprocessLock");
151 inline const
ID&
GetID() const throw();
166 virtual
void Release() const throw();
183 if (mDevice == iOtherID.mDevice)
185 return (mInode < iOtherID.mInode);
189 return (mDevice < iOtherID.mDevice);
199 #endif // MFileSystem_InprocessFileLocker_h InprocessFileLocker * operator->() const
Definition: InprocessFileLocker.h:114
LockPtr & Assign(MBase::ReturnPtrI< InprocessFileLocker > &irReturnPtr, bool bInProcessLock_NoWait=false)
Definition: InprocessFileLocker.h:87
const ID & GetID() const
Definition: InprocessFileLocker.h:193
~LockPtr()
Definition: InprocessFileLocker.h:53
void parentRelease() const
Definition: InprocessFileLocker.h:167
bool IsNull() const
Definition: SmartPtrI.h:204
InprocessFileLocker(const ID &irID, ModuleMain *ipModuleMain)
void Reset(ReferenceCountedT *ipData=NULL)
Definition: SmartPtrI.h:102
virtual ~InprocessFileLocker()
LockPtr & operator=(MBase::ReturnPtrI< InprocessFileLocker > &irReturnPtr)
Definition: InprocessFileLocker.h:65
InprocessFileLocker * Get() const
Definition: SmartPtrI.h:199
Definition: InprocessFileLocker.h:41
virtual void Release() const
Definition: FileSystem/FileSystem/PrivateSource/ModuleMain.h:24
Definition: Allocator.h:47
virtual void ReferenceCountIsAboutToReachZero() const
ID(const char *ipFilePath, FileHandle iFileHandle)
Definition: ReturnPtrI.h:47
LockPtr()
Definition: InprocessFileLocker.h:47
SmartPtrI(InprocessFileLocker *ipData=NULL)
Definition: SmartPtrI.h:38
Definition: InprocessSemaphore.h:18
Definition: InprocessFileLocker.h:134
Definition: ReferenceCountedImpl.h:44
bool operator<(const ID &iOtherID) const
Definition: InprocessFileLocker.h:181
int FileHandle
Definition: FileImpl.h:21
MBase::ReturnPtrI< InprocessFileLocker > ReturnPtr
Definition: InprocessFileLocker.h:39
Definition: StrongObjects.h:21
Definition: InprocessFileLocker.h:32
ReferenceCountedT * operator->() const
Definition: SmartPtrI.h:187
virtual void Release() const
Definition: ReferenceCountedImpl.h:64
Definition: ReturnPtrI.h:22
void Reset()
Definition: InprocessFileLocker.h:119
Definition: ReferenceCounted.h:58