hsa: cl udp app wait for pthreads to exit 92/43492/3
authorFlorin Coras <[email protected]>
Tue, 29 Jul 2025 04:56:49 +0000 (00:56 -0400)
committerFlorin Coras <[email protected]>
Tue, 29 Jul 2025 05:08:33 +0000 (01:08 -0400)
Type: improvement

Change-Id: I31367de6fe3dde38d4379069b5c6fe589bd12e76
Signed-off-by: Florin Coras <[email protected]>
src/plugins/hs_apps/vcl/vcl_test_cl_udp.c

index a0df4c2..1325941 100644 (file)
@@ -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);