13 #ifndef _OsMsgDispatcher_h_ 14 #define _OsMsgDispatcher_h_ 106 inline virtual int numMsgs(
void);
135 inline void setMsgsLost();
167 void OsMsgDispatcher::setMsgsLost()
172 #endif // _OsMsgDispatcher_h_ int maxMsgs() const
Returns the maximum number of messages that can be queued.
Definition: OsMsgDispatcher.h:152
virtual UtlBoolean isEmpty(void)
Return TRUE if the message queue is empty, FALSE otherwise.
Definition: OsMsgDispatcher.h:157
Dispatcher for Resource Notification Messages.
Definition: OsMsgDispatcher.h:39
UtlBoolean mQueueOwned
Indicates whether or not mMsgQueue is owned by the dispatcher.
Definition: OsMsgDispatcher.h:126
virtual OsStatus receive(OsMsg *&rpMsg, const OsTime &rTimeout=OsTime::OS_INFINITY)
Receive a message from the dispatcher queue.
Definition: OsMsgDispatcher.cpp:66
UtlBoolean isMsgsLost() const
Definition: OsMsgDispatcher.h:162
OsMsgQ * mMsgQueue
The message queue that this dispatcher is using.
Definition: OsMsgDispatcher.h:125
OsStatus
Definition: OsStatus.h:27
UtlBoolean mMsgsLost
Whether any messages have been dropped on the < floor due to the queue being full.
Definition: OsMsgDispatcher.h:128
OsMsgDispatcher()
Default constructor.
Definition: OsMsgDispatcher.cpp:26
virtual OsStatus post(const OsMsg &msg)
Post a resource notification message.
Definition: OsMsgDispatcher.cpp:51
virtual ~OsMsgDispatcher()
Destructor.
Definition: OsMsgDispatcher.cpp:40
int UtlBoolean
Definition: UtlDefs.h:41
#define TRUE
Definition: UtlDefs.h:25
virtual int numMsgs(void)
Return the number of messages in the queue.
Definition: OsMsgDispatcher.h:147