28 #ifndef AsyncComm_DispatchHandlerSynchronizer_h
29 #define AsyncComm_DispatchHandlerSynchronizer_h
34 #include <condition_variable>
133 #endif // AsyncComm_DispatchHandlerSynchronizer_h
std::condition_variable m_cond
Condition variable for signalling change in queue state.
virtual void handle(EventPtr &event)
Event Dispatch method.
Abstract base class for application dispatch handlers registered with AsyncComm.
std::shared_ptr< Event > EventPtr
Smart pointer to Event.
bool wait_for_reply(EventPtr &event)
This method is used by a client to synchronize.
DispatchHandlerSynchronizer()
Constructor.
std::shared_ptr< DispatchHandlerSynchronizer > DispatchHandlerSynchronizerPtr
Shared smart pointer to DispatchHandlerSynchronizer.
Declarations for DispatchHandler.
std::mutex m_mutex
Mutex for serializing concurrent access.
DispatchHandler class used to synchronize with response messages.
std::queue< EventPtr > m_receive_queue
Event queue.
bool wait_for_connection()
Waits for CONNECTION_ESTABLISHED event.
virtual ~DispatchHandlerSynchronizer()