From a3a489691d7f2813702fae2d915120743b860d62 Mon Sep 17 00:00:00 2001 From: hanlin Date: Mon, 13 Jul 2020 11:09:15 +0800 Subject: vcl: support multi-threads with session migration Currently, mutlti-threads only support one dispatch thread and multiple worker threads, eventually only dispatch thread is a vcl worker and can interact with epoll. This patch will register all threads as vcl worker, and then each thread can interact with epoll now. Moreover, session migration also supported, such as socket created in thread A and used (bind, connect and etc.) in thread B. Type: feature Signed-off-by: hanlin Change-Id: Iab0b43a33466968c1423d7d20faf1460c8589d91 --- src/vcl/vcl_locked.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/vcl/vcl_locked.h') diff --git a/src/vcl/vcl_locked.h b/src/vcl/vcl_locked.h index 18b341b11ca..7cfb3bdc522 100644 --- a/src/vcl/vcl_locked.h +++ b/src/vcl/vcl_locked.h @@ -51,6 +51,9 @@ vcl_session_handle_t vlsh_to_session_index (vls_handle_t vlsh); vls_handle_t vls_session_index_to_vlsh (uint32_t session_index); int vls_app_create (char *app_name); unsigned char vls_use_eventfd (void); +unsigned char vls_mt_wrk_supported (void); +int vls_use_real_epoll (void); +void vls_register_vcl_worker (void); #endif /* SRC_VCL_VCL_LOCKED_H_ */ -- cgit 1.2.3-korg