WPILibC++  2020.3.2-60-g3011ebe
frc::detail::ListenerExecutor Class Reference

An executor for running listener tasks posted by Sendable listeners synchronously from the main application thread. More...

#include <ListenerExecutor.h>

Public Member Functions

void Execute (std::function< void()> task)
 Posts a task to the executor to be run synchronously from the main thread. More...
 
void RunListenerTasks ()
 Runs all posted tasks. More...
 

Detailed Description

An executor for running listener tasks posted by Sendable listeners synchronously from the main application thread.

See also
Sendable

Member Function Documentation

◆ Execute()

void frc::detail::ListenerExecutor::Execute ( std::function< void()>  task)

Posts a task to the executor to be run synchronously from the main thread.

Parameters
taskThe task to run synchronously from the main thread.

◆ RunListenerTasks()

void frc::detail::ListenerExecutor::RunListenerTasks ( )

Runs all posted tasks.

Called periodically from main thread.


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