aboutsummaryrefslogtreecommitdiff
path: root/acceptor.h
diff options
context:
space:
mode:
authorGuangxiong Lin <[email protected]>2022-12-09 16:46:49 +0800
committerGuangxiong Lin <[email protected]>2022-12-09 19:39:08 +0800
commit49839c88a98d3798f7b18c58f54f26f36cacff38 (patch)
tree5cb4ee13f9bdb0ef25e39a07a628f6f16da18e87 /acceptor.h
parent0457119acb36b89b6f2f4534fe8ad94b19540bbd (diff)
downloadtinyserver-49839c88a98d3798f7b18c58f54f26f36cacff38.tar.gz
tinyserver-49839c88a98d3798f7b18c58f54f26f36cacff38.tar.bz2
tinyserver-49839c88a98d3798f7b18c58f54f26f36cacff38.zip
Implement a simple thread pool and refactor
Refactor
Diffstat (limited to 'acceptor.h')
-rw-r--r--acceptor.h9
1 files changed, 2 insertions, 7 deletions
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