… | |
… | |
41 | GPollFD *pfd = (GPollFD *)w->data; |
41 | GPollFD *pfd = (GPollFD *)w->data; |
42 | |
42 | |
43 | pfd->revents |= pfd->events & |
43 | pfd->revents |= pfd->events & |
44 | ((revents & EV_READ ? G_IO_IN : 0) |
44 | ((revents & EV_READ ? G_IO_IN : 0) |
45 | | (revents & EV_READ ? G_IO_OUT : 0)); |
45 | | (revents & EV_READ ? G_IO_OUT : 0)); |
46 | |
|
|
47 | printf ("ctx rev %d %x:%x\n", w->fd, pfd->events, pfd->revents);//D |
|
|
48 | } |
46 | } |
49 | |
47 | |
50 | static void |
48 | static void |
51 | prepare_cb (EV_P_ ev_prepare *w, int revents) |
49 | prepare_cb (EV_P_ ev_prepare *w, int revents) |
52 | { |
50 | { |