equal
deleted
inserted
replaced
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 |