12 #ifndef ASYNC_BEHAVIOR_A799E0CD_DD3E_45EA_BF47_586C94FC32CB 13 #define ASYNC_BEHAVIOR_A799E0CD_DD3E_45EA_BF47_586C94FC32CB 16 #include "essentials/non_copyable.hpp" 17 #include "essentials/compatibility/thread.hpp" 27 class simple_state_base;
28 class async_event_handler;
29 class event_collector;
52 virtual void notify_should_stop();
55 sxe::SX_UNIQUE_PTR<sxe::thread> worker_;
56 mutable sxe::mutex mutex_;
Definition: event_collector.hpp:25
Definition: simple_state_base.hpp:24
bool should_stop() const
Definition: async_behavior.cpp:64
async_behavior()
Definition: async_behavior.cpp:26
void run(const event &_event, event_collector &_event_collector, const simple_state_base &_simple_state, async_event_handler &_async_event_handler)
Definition: async_behavior.cpp:42
virtual ~async_behavior() SX_NOEXCEPT
Definition: async_behavior.cpp:35
Interface of an event. An event has an ID, a name and a priority (for processing by the async state m...
Definition: event.hpp:28
Definition: async_event_handler.hpp:22
Definition: adapter_cpp11.hpp:21
void halt_and_join()
Definition: async_behavior.cpp:52
Definition: async_behavior.hpp:32