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 } |
|
645 |
638 |
646 TInt CCacheClient::CachedBytes() |
639 TInt CCacheClient::CachedBytes() |
647 { |
640 { |
648 TInt cacheLineCount = iCacheLines->Count(); |
641 TInt cacheLineCount = iCacheLines->Count(); |
649 |
642 |