net/mlx5: fix thread termination check on Windows

The mlx5_is_thread_alive function always returns false
(terminated) regardless to the actual thread state.

Fixed to return the correct thread state.

Bugzilla ID: 1089
Fixes: 5d55a494f4 ("net/mlx5: split multi-thread flow handling per OS")
Cc: stable@dpdk.org

Signed-off-by: Tal Shnaiderman <talshn@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
This commit is contained in:
Tal Shnaiderman 2022-10-12 09:49:49 +03:00 committed by Raslan Darawsheh
parent b77f58604a
commit 5976328d91

View File

@ -262,7 +262,7 @@ mlx5_is_thread_alive(HANDLE thread_handle)
if (result == WAIT_OBJECT_0)
return false;
return false;
return true;
}
static int