uvw  2.10.0
check.h
1 #ifndef UVW_CHECK_INCLUDE_H
2 #define UVW_CHECK_INCLUDE_H
3 
4 
5 #include <uv.h>
6 #include "handle.hpp"
7 #include "loop.h"
8 
9 
10 namespace uvw {
11 
12 
18 struct CheckEvent {};
19 
20 
29 class CheckHandle final: public Handle<CheckHandle, uv_check_t> {
30  static void startCallback(uv_check_t *handle);
31 
32 public:
33  using Handle::Handle;
34 
39  bool init();
40 
47  void start();
48 
52  void stop();
53 };
54 
55 
56 }
57 
58 
59 #ifndef UVW_AS_LIB
60 #include "check.cpp"
61 #endif
62 
63 #endif // UVW_CHECK_INCLUDE_H
The CheckHandle handle.
Definition: check.h:29
bool init()
Initializes the handle.
void stop()
Stops the handle.
void start()
Starts the handle.
Handle base class.
Definition: handle.hpp:30
uvw default namespace.
Definition: async.h:10
CheckEvent event.
Definition: check.h:18