eal/windows: fix thread handle
authorTasnim Bashar <tbashar@mellanox.com>
Thu, 25 Jun 2020 19:25:39 +0000 (12:25 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 29 Jun 2020 22:50:26 +0000 (00:50 +0200)
commit5652a4ad24dea25cb9a114f26bf1b9a113685494
tree7eda10aeaee0de6f6e5000ce676742417f3ed97d
parentb762221ac24fe5f6c4d62847cc8431806c7587da
eal/windows: fix thread handle

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 <tbashar@mellanox.com>
lib/librte_eal/windows/include/pthread.h
lib/librte_eal/windows/include/rte_windows.h