diff -r a5496987b1da -r 189ece41fa29 userlibandfileserver/fileserver/sfile/sf_utl.cpp --- a/userlibandfileserver/fileserver/sfile/sf_utl.cpp Thu Jul 01 17:57:33 2010 +0100 +++ b/userlibandfileserver/fileserver/sfile/sf_utl.cpp Fri Jul 09 13:13:20 2010 +0100 @@ -613,9 +613,11 @@ } -// -// Returns ETrue if aDes only contains spaces or is zero length -// + +/** + @return ETrue if aDes only contains spaces or is zero length + Note that _all_ UNICODE space characters are treated as usual spaces +*/ static TBool IsSpace(const TDesC& aDes) { @@ -890,38 +892,43 @@ return powerGood; } +//--------------------------------------------------------------------------------------------------------------------------------- +/** + Decrement mount's lock counter when the mount resource, like a file or directory is opened. + See also: CMountCB::LockStatus() +*/ void AddResource(CMountCB& aMount) -// -// Decrement resource counters -// { __CHECK_DRIVETHREAD(aMount.Drive().DriveNumber()); __ASSERT_DEBUG(aMount.LockStatus()<=0,Fault(ERawDiskBadAccessCount2)); aMount.DecLock(); } +/** + Increment mount's lock counter when the mount resource, like a file or directory is closed. + See also: CMountCB::LockStatus() +*/ void RemoveResource(CMountCB& aMount) -// -// Increment resource counters -// { __ASSERT_DEBUG(aMount.LockStatus()<0,Fault(ERawDiskBadAccessCount1)); aMount.IncLock(); } +/** + Increment mount's lock counter when the disk access (Format, Raw disk) is opened on the mount + See also: CMountCB::LockStatus() +*/ void AddDiskAccess(CMountCB& aMount) -// -// Increment resource counters -// { aMount.IncLock(); } +/** + Decrement mount's lock counter when the disk access (Format, Raw disk) is closed on the mount + See also: CMountCB::LockStatus() +*/ void RemoveDiskAccess(CMountCB& aMount) -// -// Decrement resource counters -// { aMount.DecLock(); }