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