vcl: make ldp workers thread local 98/41798/7
authorFlorin Coras <[email protected]>
Thu, 31 Oct 2024 07:55:04 +0000 (00:55 -0700)
committerDave Wallace <[email protected]>
Thu, 21 Nov 2024 17:28:08 +0000 (17:28 +0000)
commitca9747a73f40a3a836c3078fe93afe208f6db39a
tree145af1942d87a94ce64f286aba72bb8ba0ec30f8
parentd74e440f2f2a441033a7f6fdf078670f125c41a8
vcl: make ldp workers thread local

Multi-threaded apps that do not allocate per-thread workers
(multi-thread workers vcl config) ended up sharing worker state like the
select bitmaps and time among others. Those should not be shared.

To avoid this, make ldp workers thread local variables.

Type: fix

Signed-off-by: Florin Coras <[email protected]>
Change-Id: Iabdcc413991dbaafff33f24187f7053a9c5a1270
src/vcl/ldp.c