Active Object struct. More...
|Time Event tick counter for the active object. |
|priority of the active object (1..QF_MAX_ACTIVE) |
|offset to where next event will be inserted into the buffer |
|offset of where next event will be extracted from the buffer |
|number of events currently present in the queue (events in the ring buffer + 1 event in the state machine) |
Active Object struct.
QActive is the base structure for derivation of active objects. Active objects in QF-nano are encapsulated tasks (each embedding a state machine and an event queue) that communicate with one another asynchronously by sending and receiving events. Within an active object, events are processed sequentially in a run-to-completion (RTC) fashion, while QF encapsulates all the details of thread-safe event exchange and queuing.