TFileShareLock Class Reference

class TFileShareLock

File share lock

The lock specifies the lowest and highest position in the file to be locked. Note that files may have many locks on it, but overlapping sections cannot be locked. This is used by a file control block, a CFileCB object.

CFileCB

Constructor & Destructor Documentation

TFileShareLock(const CFileShare *, TUint64, TUint64)

TFileShareLock ( const CFileShare * aOwner,
TUint64 aPosLow,
TUint64 aPosHigh
)

Parameters

const CFileShare * aOwner
TUint64 aPosLow
TUint64 aPosHigh

TFileShareLock()

TFileShareLock ( ) [private]

TFileShareLock(const TFileShareLock &)

TFileShareLock ( const TFileShareLock & ) [private]

Parameters

const TFileShareLock &

Member Functions Documentation

MatchByPos(TUint64, TUint64)

TBool MatchByPos ( TUint64 aPosLow,
TUint64 aPosHigh
) const

Parameters

TUint64 aPosLow
TUint64 aPosHigh

MatchOwner(const CFileShare *)

TBool MatchOwner ( const CFileShare * aShare ) const [inline]

Parameters

const CFileShare * aShare

PosHigh()

TUint64 PosHigh ( ) const [inline]

PosLow()

TUint64 PosLow ( ) const [inline]

operator=(const TFileShareLock &)

TFileShareLock & operator= ( const TFileShareLock & ) [private]

Parameters

const TFileShareLock &

Member Data Documentation

const CFileShare * iOwner

const CFileShare * iOwner [private]

TUint64 iPosHigh

TUint64 iPosHigh [private]

TUint64 iPosLow

TUint64 iPosLow [private]