version 1.5, 2006/01/30 16:18:20
|
version 1.6, 2006/08/09 21:13:03
|
|
|
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
#include <Pegasus/Common/CIMClass.h> | #include <Pegasus/Common/CIMClass.h> |
#include <Pegasus/Common/CIMInstance.h> | #include <Pegasus/Common/CIMInstance.h> |
#include <Pegasus/Common/IPC.h> |
|
#include <Pegasus/Common/HashTable.h> | #include <Pegasus/Common/HashTable.h> |
|
#include <Pegasus/Common/Mutex.h> |
#include <Pegasus/Repository/Linkage.h> | #include <Pegasus/Repository/Linkage.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
|
|
if (_maxEntries == 0) | if (_maxEntries == 0) |
return; | return; |
| |
_mutex.lock(pegasus_thread_self()); |
_mutex.lock(); |
| |
//// Update object if it is already in cache: | //// Update object if it is already in cache: |
| |
|
|
if (_maxEntries == 0) | if (_maxEntries == 0) |
return false; | return false; |
| |
_mutex.lock(pegasus_thread_self()); |
_mutex.lock(); |
| |
//// Search cache for object. | //// Search cache for object. |
| |
|
|
if (_maxEntries == 0) | if (_maxEntries == 0) |
return false; | return false; |
| |
_mutex.lock(pegasus_thread_self()); |
_mutex.lock(); |
| |
//// Find and remove the given element. | //// Find and remove the given element. |
| |