uvw 3.1.0
Loading...
Searching...
No Matches
check.h
1#ifndef UVW_CHECK_INCLUDE_H
2#define UVW_CHECK_INCLUDE_H
3
4#include <uv.h>
5#include "handle.hpp"
6#include "loop.h"
7
8namespace uvw {
9
11struct check_event {};
12
21class check_handle final: public handle<check_handle, uv_check_t, check_event> {
22 static void start_callback(uv_check_t *hndl);
23
24public:
25 using handle::handle;
26
31 int init() final;
32
41 int start();
42
47 int stop();
48};
49
50} // namespace uvw
51
52#ifndef UVW_AS_LIB
53# include "check.cpp"
54#endif
55
56#endif // UVW_CHECK_INCLUDE_H
The check handle.
Definition: check.h:21
int init() final
Initializes the handle.
int stop()
Stops the handle.
int start()
Starts the handle.
Handle base class.
Definition: handle.hpp:23
uvw default namespace.
Definition: async.h:8
Check event.
Definition: check.h:11