|
|
@@ -112,7 +112,7 @@ void del_listener(struct io_listener *l)
|
|
|
del_fd(&l->fd);
|
|
|
}
|
|
|
|
|
|
-void backend_set_state(struct io_conn *conn, struct io_plan *plan)
|
|
|
+static void backend_set_state(struct io_conn *conn, struct io_plan *plan)
|
|
|
{
|
|
|
enum io_state state = from_ioplan(plan);
|
|
|
struct pollfd *pfd = &pollfds[conn->fd.backend_info];
|
|
|
@@ -138,6 +138,11 @@ void backend_set_state(struct io_conn *conn, struct io_plan *plan)
|
|
|
conn->state = state;
|
|
|
}
|
|
|
|
|
|
+void backend_wakeup(struct io_conn *conn)
|
|
|
+{
|
|
|
+ num_next++;
|
|
|
+}
|
|
|
+
|
|
|
static void accept_conn(struct io_listener *l)
|
|
|
{
|
|
|
struct io_conn *c;
|