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

2020-06-29 Thread Thomas Monjalon
25/06/2020 21:25, 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-

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

2020-06-25 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/