Go to the documentation of this file.
156 for (
size_t i = 0; i < numElements; i++)
175 JLGENERIC(journal, level,
"Waiting for " << numElements <<
" objects");
176 for (
size_t i = 0; i < numElements; i++)
Abstract reply object. Blocks on a semaphore when requesting the message until the message has been s...
std::shared_ptr< ReplyObject > addReplyObject(ReplyObject *replyObject)
Add a reply object to the reply monitor.
ReplyMonitor()
Default constructor.
ReplyObjectRemover * m_monitor
bool addReply(const XsMessage &message)
Put a reply in the monitor.
std::vector< ReplyObject * > m_objectList
A journalling class for debugging applications.
ReplyObjectDeleter(ReplyObjectRemover *monitor=NULL)
A class that deletes a reply object and removes it from the given monitor.
#define JLGENERIC(journal, level, msg)
Structure for storing a single message.
A class that removes a reply object from the given monitor.
void dumpObjectList(Journaller *journal, JournalLogLevel level) const
Dumps the current list of objects to wait for to the supplied journaller.
void setMessage(const XsMessage &msg)
Sets a message as reply message and trigger the semaphore which will unblock any waiting message() ca...
void operator()(ReplyObject *p) const
virtual void removeObject(ReplyObject *obj)=0
Remove an object from the list.
void removeObject(std::shared_ptr< ReplyObject > const &obj)
Remove an object from the list.