… | |
… | |
1878 | // timeout occurred, take action |
1878 | // timeout occurred, take action |
1879 | } |
1879 | } |
1880 | else |
1880 | else |
1881 | { |
1881 | { |
1882 | // callback was invoked, but there was some recent |
1882 | // callback was invoked, but there was some recent |
1883 | // activity. simply restart the timer to time out |
1883 | // activity. simply restart the timer to time out |
1884 | // after "after" seconds, which is the earliest time |
1884 | // after "after" seconds, which is the earliest time |
1885 | // the timeout can occur. |
1885 | // the timeout can occur. |
1886 | ev_timer_set (w, after, 0.); |
1886 | ev_timer_set (w, after, 0.); |
1887 | ev_timer_start (EV_A_ w); |
1887 | ev_timer_start (EV_A_ w); |
1888 | } |
1888 | } |
… | |
… | |
4663 | and do not want its identifiers to be visible. |
4663 | and do not want its identifiers to be visible. |
4664 | |
4664 | |
4665 | To use this, define C<EV_API_STATIC> and include F<ev.c> in the file that |
4665 | To use this, define C<EV_API_STATIC> and include F<ev.c> in the file that |
4666 | wants to use libev. |
4666 | wants to use libev. |
4667 | |
4667 | |
|
|
4668 | This option only works when libev is compiled with a C compiler, as C++ |
|
|
4669 | doesn't support the required declaration syntax. |
|
|
4670 | |
4668 | =item EV_AVOID_STDIO |
4671 | =item EV_AVOID_STDIO |
4669 | |
4672 | |
4670 | If this is set to C<1> at compiletime, then libev will avoid using stdio |
4673 | If this is set to C<1> at compiletime, then libev will avoid using stdio |
4671 | functions (printf, scanf, perror etc.). This will increase the code size |
4674 | functions (printf, scanf, perror etc.). This will increase the code size |
4672 | somewhat, but if your program doesn't otherwise depend on stdio and your |
4675 | somewhat, but if your program doesn't otherwise depend on stdio and your |