1TICKIT_WATCH_LATER(3)      Library Functions Manual      TICKIT_WATCH_LATER(3)
2
3
4

NAME

6       tickit_watch_later - invoke a callback at the next round of IO events
7

SYNOPSIS

9       #include <tickit.h>
10
11       typedef int TickitCallbackFn(Tickit *t, TickitEventflags flags,
12           void *info, void *user);
13
14       void *tickit_watch_later(Tickit *t, int msec, TickitBindFlags flags,
15           TickitCallbackFn *fn, void *user);
16
17       Link with -ltickit.
18

DESCRIPTION

20       tickit_watch_later() registers a callback function to be invoked by the
21       toplevel event loop as it processes the next round of IO events. A reg‐
22       istered  callback  will  be invoked by a running call to tickit_run(3).
23       The callback function will be invoked once, and then  destroyed  after‐
24       wards. The info pointer will be NULL.
25
26       When   invoked,   the   callback   function   is   always  passed  both
27       TICKIT_EV_FIRE and TICKIT_EV_UNBIND flags to its flags argument. If the
28       callback had been registered with the TICKIT_BIND_DESTROY flag, then it
29       will also be invoked with the TICKIT_EV_DESTROY flag if it has not  yet
30       been invoked by the time the toplevel instance is destroyed.
31

RETURN VALUE

33       tickit_watch_later() returns an opaque identifier pointer.
34

SEE ALSO

36       tickit_new_stdio(3),                  tickit_watch_timer_after_msec(3),
37       tickit_watch_timer_at_epoch(3), tickit_watch_cancel(3), tickit(7)
38
39
40
41                                                         TICKIT_WATCH_LATER(3)
Impressum