| 41 | } |
| 42 | |
| 43 | static void async_msg_cb(struct ev_loop *loop, ev_async *ev, int revent) { |
| 44 | reinterpret_cast<NetworkThread *>(ev_userdata(loop))->onSend(); |
| 45 | } |
| 46 | |
| 47 | static void writable_cb(struct ev_loop *loop, ev_io *ev, int revent) { |
| 48 | reinterpret_cast<NetworkThread *>(ev_userdata(loop))->onSend(ev->fd); |