userlibandfileserver/fileserver/sfile/sf_cache_client.cpp
changeset 201 43365a9b78a3
parent 0 a41df078684a
child 257 3e88ff8f41d5
equal deleted inserted replaced
200:73ea206103e6 201:43365a9b78a3
   633 	if (LockedBytes() > iMaxBytesCached)
   633 	if (LockedBytes() > iMaxBytesCached)
   634 		return ETrue;
   634 		return ETrue;
   635 	return EFalse;
   635 	return EFalse;
   636 	}
   636 	}
   637 
   637 
       
   638 // return true if more than half of the segments in this file are locked
       
   639 TBool CCacheClient::LockedSegmentsHalfUsed()
       
   640 	{
       
   641 	if (LockedBytes() > (iMaxBytesCached >> 1))
       
   642 		return ETrue;
       
   643 	return EFalse;
       
   644 	}
   638 
   645 
   639 TInt CCacheClient::CachedBytes()
   646 TInt CCacheClient::CachedBytes()
   640 	{
   647 	{
   641 	TInt cacheLineCount = iCacheLines->Count();
   648 	TInt cacheLineCount = iCacheLines->Count();
   642 
   649