2022-04-19 19:23:30 -04:00
|
|
|
void QActive::run(void) { // <---
|
2019-03-28 11:59:31 -04:00
|
|
|
m_running = true;
|
|
|
|
while (m_running) {
|
2022-08-11 15:36:19 -04:00
|
|
|
QEvt const *e = get_(e); // wait for an event
|
2020-10-01 12:50:17 -04:00
|
|
|
dispatch(e, m_prio); // dispatch e to the AO's state machine
|
2022-08-11 15:36:19 -04:00
|
|
|
QF::gc(e); // check if the event is garbage, and collect it if so
|
2019-03-28 11:59:31 -04:00
|
|
|
}
|
2012-08-14 18:00:48 -04:00
|
|
|
|
2013-10-10 20:01:51 -04:00
|
|
|
unsubscribeAll(); // unsubscribe from all signals
|
2022-08-11 15:36:19 -04:00
|
|
|
unregister_(); // remove this object from any subscriptions
|
2012-08-14 18:00:48 -04:00
|
|
|
}
|