equal
deleted
inserted
replaced
45 TInt UnlockSegments(TUint8* aStartRamAddr, TUint32 aSegmentCount); |
45 TInt UnlockSegments(TUint8* aStartRamAddr, TUint32 aSegmentCount); |
46 TInt DecommitSegments(TUint8* aStartRamAddr, TUint32 aSegmentCount); |
46 TInt DecommitSegments(TUint8* aStartRamAddr, TUint32 aSegmentCount); |
47 TUint8* Base(); |
47 TUint8* Base(); |
48 void FreeMemoryChanged(TBool aIsMemoryLow); |
48 void FreeMemoryChanged(TBool aIsMemoryLow); |
49 |
49 |
|
50 #if defined(_DEBUG) || defined(_DEBUG_RELEASE) |
|
51 void SetMemoryLow(TBool aSetMemoryLow) {isMemoryLow = aSetMemoryLow;}; |
|
52 #endif //defined(_DEBUG) || defined(_DEBUG_RELEASE) |
|
53 |
50 private: |
54 private: |
51 ~CCacheMemoryManager(); |
55 ~CCacheMemoryManager(); |
52 CCacheMemoryManager(TUint32 aMaxSize); |
56 CCacheMemoryManager(TUint32 aMaxSize); |
53 void ConstructL(); |
57 void ConstructL(); |
54 TInt Lock(TUint8* aStartRamAddr, TInt aSegmentCount); |
58 TInt Lock(TUint8* aStartRamAddr, TInt aSegmentCount); |
89 NONSHARABLE_CLASS(TGlobalCacheMemorySettings) |
93 NONSHARABLE_CLASS(TGlobalCacheMemorySettings) |
90 { |
94 { |
91 public: |
95 public: |
92 static void ReadPropertiesFile(); |
96 static void ReadPropertiesFile(); |
93 |
97 |
94 static TInt CacheSize(); |
98 static TInt32 CacheSize(); |
95 static TInt LowMemoryThreshold(); |
99 static TInt32 LowMemoryThreshold(); |
96 private: |
100 private: |
97 static TInt32 iCacheSizeInBytes; |
101 static TInt32 iCacheSizeInBytes; |
98 static TInt32 iLowMemoryThreshold; |
102 static TInt32 iLowMemoryThreshold; |
99 }; |
103 }; |
100 |
104 |