uvw 3.1.0
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
11struct prepare_event {};
12
21class prepare_handle final: public handle<prepare_handle, uv_prepare_t, prepare_event> {
22 static void start_callback(uv_prepare_t *hndl);
23
24public:
25 using handle::handle;
26
31 int init() final;
32
43 int start();
44
49 int stop();
50};
51
52} // namespace uvw
53
54#ifndef UVW_AS_LIB
55# include "prepare.cpp"
56#endif
57
58#endif // UVW_PREPARE_INCLUDE_H
Handle base class.
Definition: handle.hpp:23
The prepare handle.
Definition: prepare.h:21
int init() final
Initializes the handle.
int stop()
Stops the handle.
int start()
Starts the handle.
uvw default namespace.
Definition: async.h:8
Prepare event.
Definition: prepare.h:11