version 1.1.2.6, 2009/11/10 12:42:16
|
version 1.1.2.7, 2009/11/17 11:33:12
|
|
|
* @param nsNameLan The strlen of className ( without '\0') | * @param nsNameLan The strlen of className ( without '\0') |
* @return A pointer to SCMOClass. If the class was not found, an empty | * @return A pointer to SCMOClass. If the class was not found, an empty |
* SCMOClass is returned. This can be checked by using the | * SCMOClass is returned. This can be checked by using the |
* SCMOClass.isEmptx() method. |
* SCMOClass.isEmpty() method. |
**/ | **/ |
SCMOClass getSCMOClass( | SCMOClass getSCMOClass( |
const char* nsName, | const char* nsName, |
|
|
void removeSCMOClass(CIMNamespaceName cimNameSpace,CIMName cimClassName); | void removeSCMOClass(CIMNamespaceName cimNameSpace,CIMName cimClassName); |
| |
/** | /** |
* Cleares the whole cache. |
* Clears the whole cache. |
* This should be only done at modification of a class. | * This should be only done at modification of a class. |
* This may invalidate subclass definitions in the cache. | * This may invalidate subclass definitions in the cache. |
* Since class modification is relatively rare, we just flush the entire | * Since class modification is relatively rare, we just flush the entire |
|
|
// The cache array | // The cache array |
SCMBClassCacheEntry _theCache[PEGASUS_SCMO_CLASS_CACHE_SIZE]; | SCMBClassCacheEntry _theCache[PEGASUS_SCMO_CLASS_CACHE_SIZE]; |
| |
// Lock to prevent parallel modifies on the cache. |
// Lock to prevent parallel modifications of the cache. |
ReadWriteSem _modifyCacheLock; | ReadWriteSem _modifyCacheLock; |
| |
// Last successful read index. | // Last successful read index. |