userlibandfileserver/fileserver/sfile/sf_utl.cpp
changeset 247 d8d70de2bd36
parent 152 657f875b013e
child 254 1560c419b176
child 257 3e88ff8f41d5
--- a/userlibandfileserver/fileserver/sfile/sf_utl.cpp	Tue Jul 06 15:50:07 2010 +0300
+++ b/userlibandfileserver/fileserver/sfile/sf_utl.cpp	Wed Aug 18 11:08:29 2010 +0300
@@ -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();
 	}