qpcpp/doxygen/snippets/qf_run.cpp
2019-12-31 15:56:23 -05:00

13 lines
423 B
C++

void QActive::run(void) {
m_running = true;
while (m_running) {
QEvt const *e;
get_(e); // wait for an event
dispatch(e); // dispatch event to the active object's state machine
QF::gc(e); // check if the event is garbage, and collect it if so
}
unsubscribeAll(); // unsubscribe from all signals
QF::remove_(this); // remove this object from any subscriptions
}