vcl: handle pthread cleanups in vls 63/43063/3
authorFlorin Coras <fcoras@cisco.com>
Mon, 2 Jun 2025 04:31:22 +0000 (00:31 -0400)
committerDave Barach <vpp@barachs.net>
Mon, 2 Jun 2025 22:34:27 +0000 (22:34 +0000)
commit2685c09e50f977e65910d8b047106c9a1eef0b3d
tree41a8477fc00a14f4494750431a3d9a8f30e77a26
parent459cdbd19b7a91f931c1cc59790c496ff1c9c2cc
vcl: handle pthread cleanups in vls

For historic reasons vcl registers for atexit and pthread exit cleanup
callback functions. Since vls is the one handling thread detection, move
thread cleanup logic there as well.

This also avoids potential issues if main/first pthreads exists before
the subsequent spawned ones as it may lead to premature vcl worker
cleanup.

Type: improvement

Change-Id: Id7a5c186b48f1e4c60ced635d918b5d4b4143fa6
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vcl/vcl_locked.c
src/vcl/vcl_private.c