![]() |
0.01.00
|
This class is used to represent a tasklet. More...
#include <src/core/common/tasklet.hpp>
Public Types | |
typedef void(* | Handler) (Tasklet &aTasklet) |
This function pointer is called when the tasklet is run. More... | |
Public Member Functions | |
Tasklet (otInstance &aInstance, Handler aHandler, void *aContext) | |
This constructor creates a tasklet instance. More... | |
otError | Post (void) |
This method puts the tasklet on the run queue. | |
![]() | |
otInstance & | GetInstance (void) const |
This method returns a reference to the parent otInstance structure. More... | |
Ip6::Ip6 & | GetIp6 (void) const |
This method returns a reference to the Ip6. More... | |
ThreadNetif & | GetNetif (void) const |
This method returns a reference to the thread network interface. More... | |
Friends | |
class | TaskletScheduler |
Additional Inherited Members | |
![]() | |
InstanceLocator (otInstance &aInstance) | |
This constructor initializes the object. More... | |
![]() | |
Context (void *aContext) | |
This constructor initializes the context object. More... | |
This class is used to represent a tasklet.
typedef void(* ot::Tasklet::Handler) (Tasklet &aTasklet) |
This function pointer is called when the tasklet is run.
[in] | aTasklet | A reference to the tasklet being run. |
ot::Tasklet::Tasklet | ( | otInstance & | aInstance, |
Handler | aHandler, | ||
void * | aContext | ||
) |
This constructor creates a tasklet instance.
[in] | aInstance | A reference to the instance object. |
[in] | aHandler | A pointer to a function that is called when the tasklet is run. |
[in] | aContext | A pointer to arbitrary context information. |