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
wait_for_a_while
(
uv_idle_t
*
handle
) {
7
counter
++;
8
9
if
(
counter
>= 10e6)
10
uv_idle_stop
(
handle
);
11
}
12
13
int
main
() {
14
uv_idle_t
idler
;
15
16
uv_idle_init
(
uv_default_loop
(), &
idler
);
17
uv_idle_start
(&
idler
,
wait_for_a_while
);
18
19
printf
(
"Idling...\n"
);
20
uv_run
(
uv_default_loop
(),
UV_RUN_DEFAULT
);
21
22
uv_loop_close
(
uv_default_loop
());
23
return
0;
24
}
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
counter
int64_t counter
Definition:
main.c:4
wait_for_a_while
void wait_for_a_while(uv_idle_t *handle)
Definition:
main.c:6
idler
uv_idle_t idler
Definition:
main.c:7
uv.h
UV_RUN_DEFAULT
@ UV_RUN_DEFAULT
Definition:
uv.h:255
uv_idle_stop
UV_EXTERN int uv_idle_stop(uv_idle_t *idle)
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_loop_close
UV_EXTERN int uv_loop_close(uv_loop_t *loop)
Definition:
uv-common.c:791
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
idle-basic
main.c
Generated by
1.9.1