8 #ifndef WPIUTIL_WPI_UV_PREPARE_H_
9 #define WPIUTIL_WPI_UV_PREPARE_H_
15 #include "wpi/Signal.h"
16 #include "wpi/uv/Handle.h"
29 struct private_init {};
32 explicit Prepare(
const private_init&) {}
33 ~
Prepare() noexcept
override =
default;
40 static std::shared_ptr<Prepare>
Create(
Loop& loop);
47 static std::shared_ptr<Prepare>
Create(
const std::shared_ptr<Loop>& loop) {
70 #endif // WPIUTIL_WPI_UV_PREPARE_H_
uv_prepare_t * GetRaw() const noexcept
Get the underlying handle data structure.
Definition: Handle.h:261
Handle.
Definition: Handle.h:246
static std::shared_ptr< Prepare > Create(Loop &loop)
Create a prepare handle.
WPILib C++ utilities (wpiutil) namespace.
Definition: SmallString.h:21
static std::shared_ptr< Prepare > Create(const std::shared_ptr< Loop > &loop)
Create a prepare handle.
Definition: Prepare.h:47
void Stop()
Stop the handle.
Definition: Prepare.h:59
Prepare handle.
Definition: Prepare.h:28
void Start()
Start the handle.
Event loop.
Definition: Loop.h:37
sig::Signal prepare
Signal generated once per loop iteration prior to polling for I/O.
Definition: Prepare.h:64
SignalBase is an implementation of the observer pattern, through the use of an emitting object and sl...
Definition: Signal.h:495