equal
deleted
inserted
replaced
28 _LIT( KPanicCategory, "RFeatureControl" ); |
28 _LIT( KPanicCategory, "RFeatureControl" ); |
29 __ASSERT_ALWAYS( tlsData, User::Panic( KPanicCategory, EPanicBadHandle ) ); |
29 __ASSERT_ALWAYS( tlsData, User::Panic( KPanicCategory, EPanicBadHandle ) ); |
30 |
30 |
31 return tlsData; |
31 return tlsData; |
32 } |
32 } |
33 |
33 |
|
34 |
|
35 EXPORT_C TInt GetClientCount( ) |
|
36 { |
|
37 CFeatMgrTlsData* tlsData = STATIC_CAST( CFeatMgrTlsData*, Dll::Tls() ); |
|
38 if (tlsData) |
|
39 { |
|
40 return tlsData->ClientCount(); |
|
41 } |
|
42 else |
|
43 { |
|
44 return 0; |
|
45 } |
|
46 } |
34 |
47 |
35 // ============================ MEMBER FUNCTIONS =============================== |
48 // ============================ MEMBER FUNCTIONS =============================== |
36 |
49 |
37 // ----------------------------------------------------------------------------- |
50 // ----------------------------------------------------------------------------- |
38 // CFeatureManager::CFeatureManager() |
51 // CFeatureManager::CFeatureManager() |
118 --iClientCount; |
131 --iClientCount; |
119 INFO_LOG1( "FeatMgr: TLS decrease, clients now(%d)", iClientCount ); |
132 INFO_LOG1( "FeatMgr: TLS decrease, clients now(%d)", iClientCount ); |
120 } |
133 } |
121 |
134 |
122 // ----------------------------------------------------------------------------- |
135 // ----------------------------------------------------------------------------- |
|
136 // CFeatMgrTlsData::ClientCount() |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 TInt CFeatMgrTlsData::ClientCount() |
|
140 { |
|
141 return iClientCount; |
|
142 } |
|
143 // ----------------------------------------------------------------------------- |
123 // CFeatMgrTlsData::FeatureSupported() |
144 // CFeatMgrTlsData::FeatureSupported() |
124 // ----------------------------------------------------------------------------- |
145 // ----------------------------------------------------------------------------- |
125 // |
146 // |
126 TInt CFeatMgrTlsData::FeatureSupported( TFeatureEntry& aFeature ) const |
147 TInt CFeatMgrTlsData::FeatureSupported( TFeatureEntry& aFeature ) const |
127 { |
148 { |
273 TInt CFeatMgrTlsData::SWIEnd( ) const |
294 TInt CFeatMgrTlsData::SWIEnd( ) const |
274 { |
295 { |
275 return iFeatMgrClient.SWIEnd(); |
296 return iFeatMgrClient.SWIEnd(); |
276 } |
297 } |
277 |
298 |
|
299 ///////////////////////////////////////////////////////////////////////////////// |
278 |
300 |
279 // debug only API functions |
301 // debug only API functions |
280 |
|
281 #ifdef EXTENDED_FEATURE_MANAGER_TEST |
302 #ifdef EXTENDED_FEATURE_MANAGER_TEST |
|
303 |
|
304 /** |
|
305 */ |
|
306 void CFeatMgrTlsData::ResourceMark() |
|
307 { |
|
308 iFeatMgrClient.ResourceMark(); |
|
309 } |
|
310 |
|
311 /** |
|
312 */ |
|
313 void CFeatMgrTlsData::ResourceCheck() |
|
314 { |
|
315 iFeatMgrClient.ResourceCheck(); |
|
316 } |
|
317 |
|
318 /** |
|
319 */ |
|
320 TInt CFeatMgrTlsData::ResourceCount() |
|
321 { |
|
322 return iFeatMgrClient.ResourceCount(); |
|
323 } |
|
324 |
|
325 /** |
|
326 */ |
|
327 void CFeatMgrTlsData::SetHeapFailure(TInt aAllocFailType, TInt aRate) |
|
328 { |
|
329 iFeatMgrClient.SetHeapFailure(aAllocFailType, aRate); |
|
330 } |
|
331 |
282 // ----------------------------------------------------------------------------- |
332 // ----------------------------------------------------------------------------- |
283 // CFeatMgrTlsData::NumberOfNotifyFeatures() |
333 // CFeatMgrTlsData::NumberOfNotifyFeatures() |
284 // ----------------------------------------------------------------------------- |
334 // ----------------------------------------------------------------------------- |
285 // |
335 // |
286 TInt CFeatMgrTlsData::NumberOfNotifyFeatures( void ) const |
336 TInt CFeatMgrTlsData::NumberOfNotifyFeatures( void ) const |