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

2020-05-25 Thread Thomas Monjalon
25/05/2020 03:02, Dmitry Kozlyuk: > On Sat, 23 May 2020 00:25:56 -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_getaffinit

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

2020-05-24 Thread Dmitry Kozlyuk
On Sat, 23 May 2020 00:25:56 -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 v2] eal/windows: fix invalid thread handle

2020-05-23 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/