userlibandfileserver/fileserver/sfile/sf_obj.cpp
changeset 15 4122176ea935
parent 0 a41df078684a
child 62 4a8fed1c0ef6
equal deleted inserted replaced
0:a41df078684a 15:4122176ea935
   189 
   189 
   190 Where a derived class implements its own version of this function, it must 
   190 Where a derived class implements its own version of this function, it must 
   191 either use the protected member function Inc() to increment the reference 
   191 either use the protected member function Inc() to increment the reference 
   192 count or make a base call to this function.
   192 count or make a base call to this function.
   193 
   193 
   194 @return KErrNone if successful.
   194 @return KErrNone, or another system-wide error code.
   195         KErrGeneral if unable to increment reference count.
       
   196 */
   195 */
   197 
   196 
   198 EXPORT_C TInt CFsObject::Open()
   197 EXPORT_C TInt CFsObject::Open()
   199 	{
   198 	{
   200 	TInt count=Inc();
   199 	TInt count=Inc();
       
   200 	(void)count;
   201 	__THRD_PRINT2(_L("CFsObject::Open() object=0x%x count=%d"),this,count);
   201 	__THRD_PRINT2(_L("CFsObject::Open() object=0x%x count=%d"),this,count);
   202 	return(count?KErrNone:KErrGeneral);
   202 	__ASSERT_DEBUG(count>=1,Fault(EFsObjectOpen));
       
   203 	return KErrNone;
   203 	}
   204 	}
   204 
   205 
   205 
   206 
   206 /**
   207 /**
   207 Removes an assigned container object then deletes this reference
   208 Removes an assigned container object then deletes this reference