ev_timer_again() causing segmentation fault
utku genç
utkugenc at gmail.com
Tue Oct 29 21:30:20 CET 2013
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schmorp.de/pipermail/libev/attachments/20131029/f1bda153/attachment.html>
More information about the libev
mailing list