From 49839c88a98d3798f7b18c58f54f26f36cacff38 Mon Sep 17 00:00:00 2001 From: Guangxiong Lin Date: Fri, 9 Dec 2022 16:46:49 +0800 Subject: Implement a simple thread pool and refactor Refactor --- acceptor.h | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'acceptor.h') diff --git a/acceptor.h b/acceptor.h index 8432ef6..f4c9284 100644 --- a/acceptor.h +++ b/acceptor.h @@ -1,14 +1,9 @@ #include "tsocket.h" -#include "eventloop.h" +#include "evloop.h" #ifndef __ACCEPTOR_H #define __ACCEPTOR_H -struct connAcceptor { - struct tsocket *sock; - struct eventLoop *el; -}; - -struct event *connAcceptorNewEvent(struct tsocket *sock, struct eventLoop *el); +struct event *conn_acceptor_create_event(struct tsocket *sock, evloop_t *el); #endif -- cgit v1.2.3