#include <IThreadMessageQueue.hpp>
Public Member Functions | |
| virtual void MQUALIFIER | flush ()=0 |
| virtual Retval MQUALIFIER | processObject ()=0 |
| virtual Retval MQUALIFIER | postObject (ISynchronizeObject &rObject, bool bWaitForCompletion)=0 |
| virtual void MQUALIFIER | lock ()=0 |
| virtual void MQUALIFIER | unlock ()=0 |
| virtual bool MQUALIFIER | isLocked () const =0 |
| virtual bool MQUALIFIER | isEmpty () const =0 |
This interface defines the thread message queue. The queue is used to send messages to the thread for synchronizing
| virtual void MQUALIFIER zeus::IThreadMessageQueue::flush | ( | ) | [pure virtual] |
Clears the queue
Implemented in zeus::TThreadMessageQueue.
| virtual bool MQUALIFIER zeus::IThreadMessageQueue::isEmpty | ( | ) | const [pure virtual] |
checks if the queue is empty
Implemented in zeus::TThreadMessageQueue.
| virtual bool MQUALIFIER zeus::IThreadMessageQueue::isLocked | ( | ) | const [pure virtual] |
checks if the queue is locked
Implemented in zeus::TThreadMessageQueue.
| virtual void MQUALIFIER zeus::IThreadMessageQueue::lock | ( | ) | [pure virtual] |
locks the queue. All post calls will return an error
Implemented in zeus::TThreadMessageQueue.
| virtual Retval MQUALIFIER zeus::IThreadMessageQueue::postObject | ( | ISynchronizeObject & | rObject, |
| bool | bWaitForCompletion | ||
| ) | [pure virtual] |
puts a object into the message queue
| rObject | : Synchronizing object |
| bWaitForCompletion | : caller waits for completion |
| RET_NOERROR | : Object posted |
| RET_REQUEST_FAILED | : Could not post object or waiting was aborted |
Implemented in zeus::TThreadMessageQueue.
| virtual Retval MQUALIFIER zeus::IThreadMessageQueue::processObject | ( | ) | [pure virtual] |
proceses the first object of the queue and removes it from the queue
| RET_NOERROR | : Object processed |
| RET_REQUEST_FAILED | : No object found for processing |
Implemented in zeus::TThreadMessageQueue.
| virtual void MQUALIFIER zeus::IThreadMessageQueue::unlock | ( | ) | [pure virtual] |
unlocks the queue. The queue is ready to receive objects
Implemented in zeus::TThreadMessageQueue.