uvw  2.12.1
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 
8 namespace uvw {
9 
15 struct CheckEvent {};
16 
25 class CheckHandle final: public Handle<CheckHandle, uv_check_t> {
26  static void startCallback(uv_check_t *handle);
27 
28 public:
29  using Handle::Handle;
30 
35  bool init();
36 
43  void start();
44 
48  void stop();
49 };
50 
51 } // namespace uvw
52 
53 #ifndef UVW_AS_LIB
54 # include "check.cpp"
55 #endif
56 
57 #endif // UVW_CHECK_INCLUDE_H
The CheckHandle handle.
Definition: check.h:25
bool init()
Initializes the handle.
void stop()
Stops the handle.
void start()
Starts the handle.
Handle base class.
Definition: handle.hpp:26
uvw default namespace.
Definition: async.h:8
CheckEvent event.
Definition: check.h:15