|
SatCat5
|
An "Always" object is polled whenever service() is called.
Use this type sparingly, to avoid excessive CPU loading. To receive Always callbacks, derive a child class and override "poll_always()".
#include <polling.h>
Public Member Functions | |
| virtual void | poll_always ()=0 |
| Child class MUST override this method. More... | |
Static Public Member Functions | |
| static unsigned | count_always () |
| Count active objects of this type. | |
Protected Member Functions | |
| Always (bool auto_register=true) | |
Registers this pollable object unless auto_register = false. More... | |
| void | poll_register () |
| Register this pollable object, called by the constructor. | |
| void | poll_unregister () |
| Unregister this pollable object, called by the destructor. | |
Private Attributes | |
| satcat5::poll::Always * | m_next |
Friends | |
| void | satcat5::poll::service () |
|
explicitprotected |
Registers this pollable object unless auto_register = false.
(Only children should create or destroy the base class.)
Definition at line 168 of file polling.cc.
|
pure virtual |
Child class MUST override this method.
(This method should rarely be called directly.)
Implemented in satcat5::irq::VirtualTimer, satcat5::poll::OnDemandHelper, satcat5::ublaze::TemacAvb, satcat5::test::CountAlways, satcat5::test::MockOffload, satcat5::sam::UsartSamv71, satcat5::io::KeyboardStream, satcat5::io::PosixUart, satcat5::pcap::Socket, and satcat5::cfg::Mdio.