5 #include <Poco/Event.h>
6 #include <Poco/Timespan.h>
8 #include "core/Answer.h"
9 #include "util/Loggable.h"
32 bool wait(
const Poco::Timespan &timeout,
33 std::list<Answer::Ptr> &dirtyList);
35 Answer::Ptr newAnswer();
37 void remove(
const Answer::Ptr answer);
39 std::list<Answer::Ptr> finishedAnswers();
43 unsigned long size()
const;
56 bool isDisposed()
const;
58 bool block(
const Poco::Timespan &timeout);
63 void listDirty(std::list<Answer::Ptr> &dirtyList)
const;
66 std::list<Answer::Ptr> m_answerList;
68 mutable Poco::FastMutex m_mutex;
69 Poco::AtomicCounter m_disposed;
Definition: AnswerQueue.h:22
Definition: Loggable.h:19
void dispose()
Definition: AnswerQueue.cpp:117