From 978d48b7656a0b2dd53a032c37681c5e7d66ba90 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Tue, 26 Nov 2024 00:29:24 -0800 Subject: vcl: store libc_epfd in vls instead of vcl ldp stores the libc epfds it uses in conjunction with vcl epfds in vcl attributes. Apart from being an ldp, as opposed to vcl, specific attribute, the epfd is retrieved on session close with vls locks that could be acquired from multiple threads. Avoid grabbing locks when retrieving the attribute. Type: improvement Signed-off-by: Florin Coras Change-Id: I5fc52d72667a7693b1557d209c3890a968422f1e --- src/vcl/vcl_locked.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/vcl/vcl_locked.h') diff --git a/src/vcl/vcl_locked.h b/src/vcl/vcl_locked.h index 3d04a36d5c3..bc131402cc9 100644 --- a/src/vcl/vcl_locked.h +++ b/src/vcl/vcl_locked.h @@ -56,6 +56,8 @@ 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); +int vls_set_libc_epfd (vls_handle_t ep_vlsh, int libc_epfd); +int vls_get_libc_epfd (vls_handle_t ep_vlsh); void vls_register_vcl_worker (void); #endif /* SRC_VCL_VCL_LOCKED_H_ */ -- cgit 1.2.3-korg