8 #ifndef WPIUTIL_WPI_EVENTLOOPRUNNER_H_
9 #define WPIUTIL_WPI_EVENTLOOPRUNNER_H_
14 #include "wpi/SafeThread.h"
15 #include "wpi/uv/Loop.h"
24 using LoopFunc = std::function<void(uv::Loop&)>;
50 std::shared_ptr<uv::Loop>
GetLoop();
59 #endif // WPIUTIL_WPI_EVENTLOOPRUNNER_H_
void ExecAsync(LoopFunc func)
Run a function asynchronously (once) on the loop.
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21
std::shared_ptr< uv::Loop > GetLoop()
Get the loop.
Executes an event loop on a separate thread.
Definition: EventLoopRunner.h:22
void ExecSync(LoopFunc func)
Run a function synchronously (once) on the loop.