Hello All,
Following code doesn't yield any problems:
static void udp_read_cb(EV_P_ ev_io *watcher, int revents) {
ev_timer_again(EV_A_ &communication_timeout_watcher);
do_something();
}
void do_something() {
...
}
But if I move the ev_timer_again() one call deeper, as in:
static void udp_read_cb(EV_P_ ev_io *watcher, int revents) {
do_something();
}
void do_something() {
ev_timer_again(EV_A_ &communication_timeout_watcher);
...
}
I get a segmentation fault. Am I missing something here?
Thank you,
Utku
_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev