ESP-IDF
ot::Tasklet
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Methods
Related
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
ot::Tasklet
ot::Tasklet class
Is used to represent a tasklet.
Syntax
Show:
Summary
Declaration
from
tasklet.hpp:60
class
Tasklet
:
public
InstanceLocator
{
public
:
class
Scheduler
:
private
NonCopyable
{
friend
class
Tasklet
;
public
:
Scheduler
(
void
)
:
mTail
(
nullptr
)
{
}
bool
AreTaskletsPending
(
void
)
const
{
return
mTail
!=
nullptr
;
}
void
ProcessQueuedTasklets
(
void
)
;
private
:
void
PostTasklet
(
Tasklet
&
aTasklet
)
;
Tasklet
*
mTail
;
}
;
typedef
void
(
&
Handler
)
(
Tasklet
&
aTasklet
)
;
Tasklet
(
Instance
&
aInstance
,
Handler
aHandler
)
:
InstanceLocator
(
aInstance
)
,
mHandler
(
aHandler
)
,
mNext
(
nullptr
)
{
}
void
Post
(
void
)
;
bool
IsPosted
(
void
)
const
{
return
(
mNext
!=
nullptr
)
;
}
private
:
void
RunTask
(
void
)
{
mHandler
(
*
this
)
;
}
Handler
mHandler
;
Tasklet
*
mNext
;
}
;
Fields
Field
Declared as
ot::Tasklet::mHandler
Handler
ot::Tasklet::mNext
Tasklet
*
Methods
Post()
Puts the tasklet on the tasklet scheduler run queue. If the tasklet is already posted, no change is made and run queue stays as before.
IsPosted() const
Indicates whether the tasklet is posted or not.
RunTask()
Related Functions
Found 6 other functions taking a
Tasklet
argument:
Function
ot::Ncp::NcpBase::UpdateChangedProps()
ot::Coap::CoapSecure::HandleTransmit()
ot::Ncp::NcpHdlc::EncodeAndSend()
ot::TaskletIn::HandleTasklet()
ot::Tasklet::Scheduler::PostTasklet()
ot::Ncp::NcpSpi::PrepareTxFrame()
Examples
References
from
examples
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out