version 1.75, 2006/06/02 18:22:35
|
version 1.76, 2006/07/11 18:39:28
|
|
|
#include <Pegasus/Common/Linkage.h> | #include <Pegasus/Common/Linkage.h> |
#include <Pegasus/Common/TimeValue.h> | #include <Pegasus/Common/TimeValue.h> |
#include <Pegasus/Common/CIMOperationType.h> | #include <Pegasus/Common/CIMOperationType.h> |
|
#include <Pegasus/Common/Linkable.h> |
|
#include <Pegasus/Common/IDFactory.h> |
| |
PEGASUS_NAMESPACE_BEGIN | PEGASUS_NAMESPACE_BEGIN |
| |
|
|
The Message class also provides previous and next pointers which are | The Message class also provides previous and next pointers which are |
used to place the messages on a queue by the MessageQueue class. | used to place the messages on a queue by the MessageQueue class. |
*/ | */ |
class PEGASUS_COMMON_LINKAGE Message |
class PEGASUS_COMMON_LINKAGE Message : public Linkable |
{ | { |
public: | public: |
| |
|
|
| |
const Message* getPrevious() const { return _prev; } | const Message* getPrevious() const { return _prev; } |
| |
static Uint32 getNextKey() |
static Uint32 getNextKey() { return _keyFactory.getID(); } |
{ |
|
AutoMutex autoMut(_mut); |
|
Uint32 ret = _nextKey++; |
|
return ret; |
|
} |
|
| |
static CIMOperationType convertMessageTypetoCIMOpType(Uint32 type); | static CIMOperationType convertMessageTypetoCIMOpType(Uint32 type); |
| |
|
|
Boolean printHeader = true) const; | Boolean printHeader = true) const; |
#endif | #endif |
| |
// << Thu Dec 27 10:46:04 2001 mdd >> for use with DQueue container |
|
// as used by AsyncOpNode |
|
Boolean operator == (const void *msg ) | Boolean operator == (const void *msg ) |
{ | { |
if (reinterpret_cast<void *>(this) == msg ) | if (reinterpret_cast<void *>(this) == msg ) |
|
|
MessageQueue* _owner; | MessageQueue* _owner; |
Boolean _isComplete; | Boolean _isComplete; |
Uint32 _index; | Uint32 _index; |
static Uint32 _nextKey; |
static IDFactory _keyFactory; |
static Mutex _mut; |
|
|
|
|
|
| |
friend class cimom; | friend class cimom; |
friend class MessageQueue; | friend class MessageQueue; |