userlibandfileserver/fileserver/sfile/sf_ses.cpp
branchRCL_3
changeset 62 4a8fed1c0ef6
parent 0 a41df078684a
child 273 6a75fa55495f
--- a/userlibandfileserver/fileserver/sfile/sf_ses.cpp	Tue Feb 02 01:24:03 2010 +0200
+++ b/userlibandfileserver/fileserver/sfile/sf_ses.cpp	Sat Feb 20 00:10:51 2010 +0200
@@ -27,6 +27,9 @@
           iReservedDriveAccess(KReservedDriveAccessArrayGranularity, _FOFF(TReservedDriveAccess, iDriveNumber)),
 	       iId(0)
 	{
+#if defined(_DEBUG) || defined(_DEBUG_RELEASE)
+    __e32_atomic_add_ord32(&SessionCount, 1);
+#endif
 	}
 
 CSessionFs *CSessionFs::NewL()
@@ -64,6 +67,10 @@
 	iSessionFlagsLock.Close();
 	if(iDisconnectRequest)
 		delete(iDisconnectRequest);
+
+#if defined(_DEBUG) || defined(_DEBUG_RELEASE)
+    __e32_atomic_add_ord32(&SessionCount, (TUint32) -1);
+#endif
 	}
 
 void CSessionFs::CreateL()