Rizin
unix-like reverse engineering framework and cli tools
Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
r
s
t
u
v
w
x
z
Enumerations
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
l
m
o
p
r
s
t
u
v
w
x
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Enumerator
b
d
e
h
i
k
n
p
r
s
w
Properties
Events
Related Functions
Files
File List
File Members
All
$
.
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
[
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Variables
$
.
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Enumerations
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Events
Friends
Macros
Modules
Pages
main.c
Go to the documentation of this file.
1
#include <stdio.h>
2
#include <
uv.h
>
3
4
int64_t
counter
= 0;
5
6
void
idle_cb
(
uv_idle_t
*
handle
) {
7
printf
(
"Idle callback\n"
);
8
counter
++;
9
10
if
(
counter
>= 5) {
11
uv_stop
(
uv_default_loop
());
12
printf
(
"uv_stop() called\n"
);
13
}
14
}
15
16
void
prep_cb
(
uv_prepare_t
*
handle
) {
17
printf
(
"Prep callback\n"
);
18
}
19
20
int
main
() {
21
uv_idle_t
idler
;
22
uv_prepare_t
prep;
23
24
uv_idle_init
(
uv_default_loop
(), &
idler
);
25
uv_idle_start
(&
idler
,
idle_cb
);
26
27
uv_prepare_init
(
uv_default_loop
(), &prep);
28
uv_prepare_start
(&prep,
prep_cb
);
29
30
uv_run
(
uv_default_loop
(),
UV_RUN_DEFAULT
);
31
32
return
0;
33
}
handle
static mcore_handle handle
Definition:
asm_mcore.c:8
printf
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
Definition:
cs_driver.c:93
main
int main(int argc, const char **argv)
Definition:
main.c:340
int64_t
long int64_t
Definition:
sftypes.h:32
uv_idle_s
Definition:
uv.h:834
uv_prepare_s
Definition:
uv.h:814
counter
int64_t counter
Definition:
main.c:4
idler
uv_idle_t idler
Definition:
main.c:7
idle_cb
void idle_cb(uv_idle_t *handle)
Definition:
main.c:6
prep_cb
void prep_cb(uv_prepare_t *handle)
Definition:
main.c:16
uv.h
uv_stop
UV_EXTERN void uv_stop(uv_loop_t *)
Definition:
uv-common.c:562
UV_RUN_DEFAULT
@ UV_RUN_DEFAULT
Definition:
uv.h:255
uv_prepare_init
UV_EXTERN int uv_prepare_init(uv_loop_t *, uv_prepare_t *prepare)
uv_prepare_start
UV_EXTERN int uv_prepare_start(uv_prepare_t *prepare, uv_prepare_cb cb)
uv_run
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
Definition:
core.c:365
uv_default_loop
UV_EXTERN uv_loop_t * uv_default_loop(void)
Definition:
uv-common.c:763
uv_idle_start
UV_EXTERN int uv_idle_start(uv_idle_t *idle, uv_idle_cb cb)
uv_idle_init
UV_EXTERN int uv_idle_init(uv_loop_t *, uv_idle_t *idle)
subprojects
libuv-v1.40.0
docs
code
uvstop
main.c
Generated by
1.9.1