MINOR: shctx: Remove 'use_shared_mem' variable
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Thu, 16 Nov 2023 16:38:27 +0000 (17:38 +0100)
committerWilliam Lallemand <wlallemand@haproxy.com>
Thu, 16 Nov 2023 18:35:10 +0000 (19:35 +0100)
commit45a2ff0f4ae9e43f98e5602971748e17f8a3a3aa
tree39958c992ab5e5ac3756aafbd42c7e0212bda4c4
parent4fe6c1365d66a6ce0d8e4cd6b5a8790ffbe751c7
MINOR: shctx: Remove 'use_shared_mem' variable

This global variable was used to avoid using locks on shared_contexts in
the unlikely case of nbthread==1. Since the locks do not do anything
when USE_THREAD is not defined, it will be more beneficial to simply
remove this variable and the systematic test on its value in the shared
context locking functions.
include/haproxy/shctx.h
src/cache.c
src/shctx.c
src/ssl_sock.c