vlib: stop worker threads on main loop exit 21/35721/6
authorVladislav Grishenko <themiron@yandex-team.ru>
Thu, 30 Dec 2021 14:08:42 +0000 (19:08 +0500)
committerDamjan Marion <dmarion@0xa5.net>
Tue, 7 Mar 2023 11:36:47 +0000 (11:36 +0000)
commitd1dc1060df18fe6d00367368b150b2b90e76fd14
tree211d3d34c0281d8b1cf9d63646948c562139781d
parentb7936405abd2531ed32873c8705b6474fb3f43e2
vlib: stop worker threads on main loop exit

If not, worker threads may continue own loops after deinit and/or
thread0 exit with related crashes due no rpc capability, unmapped
shared memory, etc. Main loop exit handlers that uses barrier sync
will be happy too as long as recursive barrier sync is supported.

Type: feature
Signed-off-by: Vladislav Grishenko <themiron@yandex-team.ru>
Change-Id: I255a796b06936d96715683e3f062128060233dc6
src/vlib/main.c