MCPcopy Create free account
hub / github.com/boost-ext/sml / flush_queue

Method flush_queue

include/boost/sml.hpp:2050–2057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2048 // No-op when the queue is empty; takes the thread_safe lock like process_event.
2049 template <class TDeps, class TSubs>
2050 constexpr void flush_queue(TDeps &d, TSubs &subs) {
2051 const auto lock = thread_safety_.create_lock();
2052 (void)lock;
2053 bool queued_handled = true;
2054 do {
2055 while (process_internal_events(anonymous{}, d, subs)) {}
2056 } while (process_queued_events(d, subs, queued_handled, aux::type_wrapper<process_t>{}, events_t{}));
2057 }
2058 constexpr void initialize(const aux::type_list<> &) {}
2059 template <class TState>
2060 constexpr void initialize(const aux::type_list<TState> &) {

Callers

nothing calls this directly

Calls 1

create_lockMethod · 0.45

Tested by

no test coverage detected