8 #ifndef WPIUTIL_WPI_UV_IDLE_H_
9 #define WPIUTIL_WPI_UV_IDLE_H_
15 #include "wpi/Signal.h"
16 #include "wpi/uv/Handle.h"
38 struct private_init {};
41 explicit Idle(
const private_init&) {}
42 ~
Idle() noexcept
override =
default;
49 static std::shared_ptr<Idle>
Create(
Loop& loop);
56 static std::shared_ptr<Idle>
Create(
const std::shared_ptr<Loop>& loop) {
79 #endif // WPIUTIL_WPI_UV_IDLE_H_
uv_idle_t * GetRaw() const noexcept
Get the underlying handle data structure.
Definition: Handle.h:261
Handle.
Definition: Handle.h:246
static std::shared_ptr< Idle > Create(Loop &loop)
Create an idle handle.
namespace to hold default to_json function
Definition: SmallString.h:21
static std::shared_ptr< Idle > Create(const std::shared_ptr< Loop > &loop)
Create an idle handle.
Definition: Idle.h:56
Idle handle.
Definition: Idle.h:37
sig::Signal idle
Signal generated once per loop iteration prior to Prepare signals.
Definition: Idle.h:73
Event loop.
Definition: Loop.h:37
void Start()
Start the handle.
SignalBase is an implementation of the observer pattern, through the use of an emitting object and sl...
Definition: Signal.h:495
void Stop()
Stop the handle.
Definition: Idle.h:68