version 1.29, 2008/08/15 23:14:02
|
version 1.30, 2008/09/16 18:37:05
|
|
|
#include <Pegasus/Common/Logger.h> | #include <Pegasus/Common/Logger.h> |
#include <Pegasus/Common/System.h> | #include <Pegasus/Common/System.h> |
#include <Pegasus/Common/Tracer.h> | #include <Pegasus/Common/Tracer.h> |
#include <Pegasus/Common/IPCExceptions.h> |
|
| |
#include <Pegasus/Config/ConfigManager.h> | #include <Pegasus/Config/ConfigManager.h> |
| |
|
|
// at any given time | // at any given time |
// | // |
| |
try |
|
{ |
|
if (!_mutex->timed_lock(_MUTEX_TIMEOUT)) | if (!_mutex->timed_lock(_MUTEX_TIMEOUT)) |
{ | { |
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, | throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, |
|
|
"Timed out while attempting to perform the requested " | "Timed out while attempting to perform the requested " |
"operation. Try the operation again.")); | "operation. Try the operation again.")); |
} | } |
} |
|
catch (WaitFailed&) |
|
{ |
|
// ATTN: This is an error case, not a timeout scenario |
|
throw PEGASUS_CIM_EXCEPTION_L(CIM_ERR_FAILED, |
|
MessageLoaderParms( |
|
"Security.UserManager.UserFileHandler.TIMEOUT", |
|
"Timed out while attempting to perform the requested " |
|
"operation. Try the operation again.")); |
|
} |
|
| |
switch (operation) | switch (operation) |
{ | { |