branch | GCC_SURGE |
changeset 221 | 39b39e1a406e |
parent 201 | 43365a9b78a3 |
child 257 | 3e88ff8f41d5 |
--- a/userlibandfileserver/fileserver/sfile/sf_cache_client.cpp Wed Jul 21 14:46:58 2010 +0100 +++ b/userlibandfileserver/fileserver/sfile/sf_cache_client.cpp Thu Jul 22 16:46:39 2010 +0100 @@ -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() {