uvw
3.1.0
Loading...
Searching...
No Matches
src
uvw
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
8
namespace
uvw
{
9
11
struct
idle_event
{};
12
29
class
idle_handle
final:
public
handle
<idle_handle, uv_idle_t, idle_event> {
30
static
void
start_callback(uv_idle_t *hndl);
31
32
public
:
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
uvw::handle
Handle base class.
Definition:
handle.hpp:23
uvw::idle_handle
The idle handle.
Definition:
idle.h:29
uvw::idle_handle::init
int init() final
Initializes the handle.
uvw::idle_handle::start
int start()
Starts the handle.
uvw::idle_handle::stop
int stop()
Stops the handle.
uvw
uvw default namespace.
Definition:
async.h:8
uvw::idle_event
Idle event.
Definition:
idle.h:11
Generated by
1.9.6