branch | RCL_3 |
changeset 256 | c1f20ce4abcf |
parent 0 | a41df078684a |
child 257 | 3e88ff8f41d5 |
--- a/userlibandfileserver/fileserver/sfile/sf_cache_client.cpp Thu Aug 19 11:14:22 2010 +0300 +++ b/userlibandfileserver/fileserver/sfile/sf_cache_client.cpp Tue Aug 31 16:34:26 2010 +0300 @@ -635,6 +635,13 @@ return EFalse; } +// return true if more than half of the segments in this file are locked +TBool CCacheClient::LockedSegmentsHalfUsed() + { + if (LockedBytes() > (iMaxBytesCached >> 1)) + return ETrue; + return EFalse; + } TInt CCacheClient::CachedBytes() {