Re: [dpdk-dev] [PATCH] eal/windows: fix invalid thread handle

2020-05-21 Thread Dmitry Kozlyuk
On Thu, 21 May 2020 17:11:12 -0700 Tasnim Bashar wrote: > Casting thread ID to handle is not accurate way to get thread handle. > Need to use OpenThread function to get thread handle from thread ID. > > pthread_setaffinity_np and pthread_getaffinity_np functions > for Windows are affected becaus

[dpdk-dev] [PATCH] eal/windows: fix invalid thread handle

2020-05-21 Thread Tasnim Bashar
Casting thread ID to handle is not accurate way to get thread handle. Need to use OpenThread function to get thread handle from thread ID. pthread_setaffinity_np and pthread_getaffinity_np functions for Windows are affected because of it. Signed-off-by: Tasnim Bashar --- lib/librte_eal/windows/