0.01.00
ot::TaskletScheduler Class Reference

This class implements the tasklet scheduler. More...

#include <src/core/common/tasklet.hpp>

Public Member Functions

 TaskletScheduler (void)
 This constructor initializes the object.
 
otError Post (Tasklet &aTasklet)
 This method enqueues a tasklet into the run queue. More...
 
bool AreTaskletsPending (void)
 This method indicates whether or not there are tasklets pending. More...
 
void ProcessQueuedTasklets (void)
 This method processes all tasklets queued when this is called.
 

Detailed Description

This class implements the tasklet scheduler.

Member Function Documentation

§ AreTaskletsPending()

bool ot::TaskletScheduler::AreTaskletsPending ( void  )
inline

This method indicates whether or not there are tasklets pending.

Return values
TRUEIf there are tasklets pending.
FALSEIf there are no tasklets pending.

§ Post()

otError ot::TaskletScheduler::Post ( Tasklet aTasklet)

This method enqueues a tasklet into the run queue.

Parameters
[in]aTaskletA reference to the tasklet to enqueue.
Return values
OT_ERROR_NONESuccessfully enqueued the tasklet.
OT_ERROR_ALREADYThe tasklet was already enqueued.

The documentation for this class was generated from the following files: