From: Florin Coras Date: Tue, 29 Jul 2025 04:56:49 +0000 (-0400) Subject: hsa: cl udp app wait for pthreads to exit X-Git-Tag: v26.02-rc0~145 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F92%2F43492%2F3;p=vpp.git hsa: cl udp app wait for pthreads to exit Type: improvement Change-Id: I31367de6fe3dde38d4379069b5c6fe589bd12e76 Signed-off-by: Florin Coras --- diff --git a/src/plugins/hs_apps/vcl/vcl_test_cl_udp.c b/src/plugins/hs_apps/vcl/vcl_test_cl_udp.c index a0df4c228c0..1325941129b 100644 --- a/src/plugins/hs_apps/vcl/vcl_test_cl_udp.c +++ b/src/plugins/hs_apps/vcl/vcl_test_cl_udp.c @@ -342,6 +342,9 @@ main (int argc, char **argv) while (!vt_clu_test_done (vclum)) ; + /* Wait for pthreads to cleanup before signaling */ + usleep (100e3); + for (int i = 1; i < vclum->num_workers; i++) { pthread_kill (vclum->worker_threads[i], SIGUSR1);