uvw 2.12.1
Loading...
Searching...
No Matches
prepare.h
1#ifndef UVW_PREPARE_INCLUDE_H
2#define UVW_PREPARE_INCLUDE_H
3
4#include <uv.h>
5#include "handle.hpp"
6#include "loop.h"
7
8namespace uvw {
9
15struct PrepareEvent {};
16
25class PrepareHandle final: public Handle<PrepareHandle, uv_prepare_t> {
26 static void startCallback(uv_prepare_t *handle);
27
28public:
29 using Handle::Handle;
30
35 bool init();
36
45 void start();
46
50 void stop();
51};
52
53} // namespace uvw
54
55#ifndef UVW_AS_LIB
56# include "prepare.cpp"
57#endif
58
59#endif // UVW_PREPARE_INCLUDE_H
Handle base class.
Definition handle.hpp:26
The PrepareHandle handle.
Definition prepare.h:25
void start()
Starts the handle.
bool init()
Initializes the handle.
void stop()
Stops the handle.
uvw default namespace.
Definition async.h:8
PrepareEvent event.
Definition prepare.h:15