Main Page
Related Pages
Modules
Namespaces
Namespace List
Namespace 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
r
s
t
u
v
w
y
z
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
Enumerator
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
z
Classes
Class List
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
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
r
s
t
u
v
w
y
Enumerations
a
b
c
d
e
f
h
i
k
l
m
n
o
p
r
s
t
u
v
w
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Properties
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
Related Functions
:
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
z
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
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
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
k
l
m
n
o
p
r
s
t
u
v
w
x
Enumerator
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
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
grpc
third_party
libuv
docs
code
ref-timer
libuv/docs/code/ref-timer/main.c
Go to the documentation of this file.
1
#include <stdio.h>
2
3
#include <
uv.h
>
4
5
uv_loop_t
*
loop
;
6
uv_timer_t
gc_req
;
7
uv_timer_t
fake_job_req
;
8
9
void
gc
(
uv_timer_t
*
handle
) {
10
fprintf(
stderr
,
"Freeing unused objects\n"
);
11
}
12
13
void
fake_job
(
uv_timer_t
*
handle
) {
14
fprintf(
stdout
,
"Fake job done\n"
);
15
}
16
17
int
main
() {
18
loop
=
uv_default_loop
();
19
20
uv_timer_init
(
loop
, &
gc_req
);
21
uv_unref
((
uv_handle_t
*) &
gc_req
);
22
23
uv_timer_start
(&
gc_req
,
gc
, 0, 2000);
24
25
// could actually be a TCP download or something
26
uv_timer_init
(
loop
, &
fake_job_req
);
27
uv_timer_start
(&
fake_job_req
,
fake_job
, 9000, 0);
28
return
uv_run
(
loop
,
UV_RUN_DEFAULT
);
29
}
fake_job
void fake_job(uv_timer_t *handle)
Definition:
libuv/docs/code/ref-timer/main.c:13
demumble_test.stdout
stdout
Definition:
demumble_test.py:38
gc_req
uv_timer_t gc_req
Definition:
libuv/docs/code/ref-timer/main.c:6
uv_run
UV_EXTERN int uv_run(uv_loop_t *, uv_run_mode mode)
Definition:
unix/core.c:361
uv_unref
UV_EXTERN void uv_unref(uv_handle_t *)
Definition:
uv-common.c:522
python_utils.port_server.stderr
stderr
Definition:
port_server.py:51
uv_default_loop
UV_EXTERN uv_loop_t * uv_default_loop(void)
Definition:
uv-common.c:733
UV_RUN_DEFAULT
@ UV_RUN_DEFAULT
Definition:
uv.h:254
uv_timer_s
Definition:
uv.h:850
uv.h
gc
void gc(uv_timer_t *handle)
Definition:
libuv/docs/code/ref-timer/main.c:9
main
int main()
Definition:
libuv/docs/code/ref-timer/main.c:17
handle
static csh handle
Definition:
test_arm_regression.c:16
uv_handle_s
Definition:
uv.h:441
uv_timer_start
UV_EXTERN int uv_timer_start(uv_timer_t *handle, uv_timer_cb cb, uint64_t timeout, uint64_t repeat)
Definition:
timer.c:66
uv_loop_s
Definition:
uv.h:1767
uv_timer_init
UV_EXTERN int uv_timer_init(uv_loop_t *, uv_timer_t *handle)
Definition:
timer.c:58
loop
uv_loop_t * loop
Definition:
libuv/docs/code/ref-timer/main.c:5
fake_job_req
uv_timer_t fake_job_req
Definition:
libuv/docs/code/ref-timer/main.c:7
grpc
Author(s):
autogenerated on Thu Mar 13 2025 03:00:30