|
SatCat5
|
Global helper object that services all OnDemand objects.
There is a single global instance of the OnDemandHelper class. It is the object that issues callbacks to all OnDemand objects that have requested attention.
This class inherits from Always, meaning that it is polled every time the user calls service or service_all, which causes it to check the global queue of OnDemand requests.
Definition at line 64 of file polling.cc.
Public Member Functions | |
| unsigned | count () const |
| bool | pre_test_reset () |
| void | remove (poll::OnDemand *ptr) |
Static Public Member Functions | |
| static unsigned | count_always () |
| Count active objects of this type. | |
Protected Member Functions | |
| void | poll_register () |
| Register this pollable object, called by the constructor. | |
| void | poll_unregister () |
| Unregister this pollable object, called by the destructor. | |
Private Member Functions | |
| void | list_start () |
| poll::OnDemand * | list_pop () |
| void | poll_always () override |
| Child class MUST override this method. More... | |
Private Attributes | |
| poll::OnDemand * | m_item |
| satcat5::poll::Always * | m_next |
|
inlineoverrideprivatevirtual |
Child class MUST override this method.
(This method should rarely be called directly.)
Implements satcat5::poll::Always.
Definition at line 121 of file polling.cc.