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

2020-06-25 Thread Tasnim Bashar
> From: Ranjit Menon > Sent: Wednesday, June 24, 2020 5:39 PM > To: Tasnim Bashar ; dev@dpdk.org > Cc: harini.ramakrish...@microsoft.com; pallavi.ka...@intel.com; > ocard...@microsoft.com; navas...@linux.microsoft.com; > dmitry.kozl...@gmail.com; Tal Shnaiderman ; Fady > Bader ; Ophir Munk ; Thom

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

2020-06-24 Thread Ranjit Menon
Hi, Tasnim... On 6/24/2020 4:10 PM, 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 because of it.

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

2020-06-24 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 --- v3: WA to remove warning