openthread-br
0.3.0-72c0388
|
#include <src/common/mainloop.hpp>
Public Member Functions | |
virtual void | Update (MainloopContext &aMainloop)=0 |
virtual void | Process (const MainloopContext &aMainloop)=0 |
This abstract class defines the interface of a mainloop processor which adds fds to the mainloop context and handles fds events.
|
pure virtual |
This method processes mainloop events.
[in] | aMainloop | A reference to the mainloop context. |
Implemented in otbr::ubus::UBusAgent, otbr::Mdns::AvahiPoller, otbr::TaskRunner, otbr::Ncp::ControllerOpenThread, otbr::rest::Connection, otbr::Mdns::PublisherMDnsSd, and otbr::rest::RestWebServer.
|
pure virtual |
This method updates the mainloop context.
[in,out] | aMainloop | A reference to the mainloop to be updated. |
Implemented in otbr::ubus::UBusAgent, otbr::Mdns::AvahiPoller, otbr::TaskRunner, otbr::Ncp::ControllerOpenThread, otbr::rest::Connection, otbr::Mdns::PublisherMDnsSd, and otbr::rest::RestWebServer.