WPILibC++ 2024.3.2
|
An executor for running listener tasks posted by Sendable listeners synchronously from the main application thread. More...
#include <frc/smartdashboard/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... | |
An executor for running listener tasks posted by Sendable listeners synchronously from the main application thread.
void frc::detail::ListenerExecutor::Execute | ( | std::function< void()> | task | ) |
Posts a task to the executor to be run synchronously from the main thread.
task | The task to run synchronously from the main thread. |
void frc::detail::ListenerExecutor::RunListenerTasks | ( | ) |
Runs all posted tasks.
Called periodically from main thread.