uvw  2.11.0
prepare.h
1 #ifndef UVW_PREPARE_INCLUDE_H
2 #define UVW_PREPARE_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 PrepareEvent {};
19 
20 
29 class PrepareHandle final: public Handle<PrepareHandle, uv_prepare_t> {
30  static void startCallback(uv_prepare_t *handle);
31 
32 public:
33  using Handle::Handle;
34 
39  bool init();
40 
49  void start();
50 
54  void stop();
55 };
56 
57 
58 }
59 
60 
61 #ifndef UVW_AS_LIB
62 #include "prepare.cpp"
63 #endif
64 
65 #endif // UVW_PREPARE_INCLUDE_H
Handle base class.
Definition: handle.hpp:30
The PrepareHandle handle.
Definition: prepare.h:29
void start()
Starts the handle.
bool init()
Initializes the handle.
void stop()
Stops the handle.
uvw default namespace.
Definition: async.h:10
PrepareEvent event.
Definition: prepare.h:18