uvw 3.1.0
Loading...
Searching...
No Matches
idle.h
1#ifndef UVW_IDLE_INCLUDE_H
2#define UVW_IDLE_INCLUDE_H
3
4#include <uv.h>
5#include "handle.hpp"
6#include "loop.h"
7
8namespace uvw {
9
11struct idle_event {};
12
29class idle_handle final: public handle<idle_handle, uv_idle_t, idle_event> {
30 static void start_callback(uv_idle_t *hndl);
31
32public:
33 using handle::handle;
34
39 int init() final;
40
49 int start();
50
56 int stop();
57};
58
59} // namespace uvw
60
61#ifndef UVW_AS_LIB
62# include "idle.cpp"
63#endif
64
65#endif // UVW_IDLE_INCLUDE_H
Handle base class.
Definition: handle.hpp:23
The idle handle.
Definition: idle.h:29
int init() final
Initializes the handle.
int start()
Starts the handle.
int stop()
Stops the handle.
uvw default namespace.
Definition: async.h:8
Idle event.
Definition: idle.h:11