(file) Return to SCMOClassCache.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/SCMOClassCache.cpp between version 1.1.2.7 and 1.4

version 1.1.2.7, 2009/12/03 15:53:26 version 1.4, 2012/11/06 13:53:15
Line 54 
Line 54 
     return _theInstance;     return _theInstance;
 } }
  
 #ifdef PEGASUS_USE_SCMO_CLASS_CACHE  
   
 SCMOClassCache::~SCMOClassCache() SCMOClassCache::~SCMOClassCache()
 { {
     // Signal to all callers and work in progress that the SMOClassCache     // Signal to all callers and work in progress that the SMOClassCache
Line 85 
Line 83 
             (Uint64(nameSpaceName[0]) << 8 ) |             (Uint64(nameSpaceName[0]) << 8 ) |
             Uint64(nameSpaceName[nameSpaceNameLen-1]);             Uint64(nameSpaceName[nameSpaceNameLen-1]);
  
     /*  
     fprintf(stderr,"Class Name(%s) \'%04X%02X%02X\' "  
                    "Name Space(%s) \'%04X%02X%02X\' "  
                    "Key = %016llX\n",  
             className,classNameLen,className[0],className[classNameLen-1],  
             nameSpaceName,nameSpaceNameLen,nameSpaceName[0],  
             nameSpaceName[nameSpaceNameLen-1],key);  
     */  
     return key;     return key;
 } }
  
Line 114 
Line 104 
         {         {
             // The cache is going to be destroyed.             // The cache is going to be destroyed.
             // The caller will never get the lock.             // The caller will never get the lock.
             return false;              break;
         }         }
  
         // If the lock counter not 1,an other caller is reading the entry.         // If the lock counter not 1,an other caller is reading the entry.
Line 469 
Line 459 
 } }
 #endif #endif
  
   
 #else // PEGASUS_USE_SCMO_CLASS_CACHE  
 SCMOClass SCMOClassCache::getSCMOClass(  
         const char* nsName,  
         Uint32 nsNameLen,  
         const char* className,  
         Uint32 classNameLen)  
 {  
     if (nsName && className && nsNameLen && classNameLen)  
     {  
   
          PEGASUS_ASSERT(_resolveCallBack);  
   
   
           SCMOClass tmp = _resolveCallBack(  
               CIMNamespaceNameCast(String(nsName,nsNameLen)),  
               CIMNameCast(String(className,classNameLen)));  
   
           if (tmp->isEpmpty())  
           {  
                // The requested class was not found !  
                // The modify lock is destroyed automaticaly !  
                return SCMOClass();  
           }  
   
           return SCMOClass(tmp);  
     }  
   
     return SCMOClass();  
   
 }  
   
 void SCMOClassCache::removeSCMOClass(  
     CIMNamespaceName cimNameSpace,  
     CIMName cimClassName)  
 {  
 }  
   
   
 void SCMOClassCache::clear()  
 {  
 }  
   
 #  ifdef PEGASUS_DEBUG  
 void SCMOClassCache::DisplayCacheStatistics(){}  
 #  endif  
   
 #endif  
 PEGASUS_NAMESPACE_END PEGASUS_NAMESPACE_END


Legend:
Removed from v.1.1.2.7  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2