Template class for protecting an object. More...
#include <Syncmsg.h>
Public Member Functions | |
| virtual void | Queue (Event::AsyncEvent *event) |
| Queue event from Event Manager. | |
| virtual void | Extract (Event::AsyncEvent *event) |
| Remove event from queue. | |
| virtual void | Process () |
| Process queued events for the object. | |
| template<class M > | |
| void | msgDeliver (M *msg) |
| template function for delivering message of given type to receiver | |
Protected Member Functions | |
| void | dieAux () |
Detailed Description
class Syncmsgobj< C >
Template class for protecting an object.
The key idea here is that when the object is busy, then the thread which delivers the event object does not wait. It stores the event on a queue, which is processed when the current operation has finished. A subclass of this class would be defined so that Deliver (M *msg) can be defined. We cannot have virtual template functions within this class.
Constructor & Destructor Documentation
◆ Syncmsgobj()
|
inline |
◆ ~Syncmsgobj()
|
inlinevirtual |
Definition at line 196 of file Syncmsg.h.
Member Function Documentation
◆ dieAux()
|
inlineprotected |
Definition at line 176 of file Syncmsg.h.
◆ Queue()
|
inlinevirtual |
Queue event from Event Manager.
Definition at line 208 of file Syncmsg.h.
References SyncEventQueue::Insert().
◆ Extract()
|
inlinevirtual |
◆ Process()
|
inlinevirtual |
Process queued events for the object.
Definition at line 234 of file Syncmsg.h.
References SyncEventQueue::First().
◆ msgDeliver()
template function for delivering message of given type to receiver
Definition at line 288 of file Syncmsg.h.
References SyncEventQueue::First(), and SyncEventQueue::Insert().
The documentation for this class was generated from the following file: