Add rte_sys_gettid function to use rte_gettid() on Windows.
rte_gettid() is required for recursive spin lock and recursive ticket lock.
Signed-off-by: Tasnim Bashar
---
lib/librte_eal/windows/eal_thread.c | 6 ++
1 file changed, 6 insertions(+)
diff --git a/lib/librte_eal/windows
Add rte_sys_gettid function to use rte_gettid() on Windows.
rte_gettid() is required for recursive spin lock and recursive ticket lock.
Signed-off-by: Tasnim Bashar
---
v2: remove eal_thread_self function and fix style
---
lib/librte_eal/windows/eal_thread.c | 15 ---
1 file
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
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
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
In rte_windows, rte_log is used.
Therefore, rte_log is included to use rte_windows independently.
- Tasnim
> -Original Message-
> From: Thomas Monjalon
> Sent: Thursday, June 11, 2020 7:35 AM
> To: Tasnim Bashar
> Cc: dev@dpdk.org; harini.ramakrish...@microsoft.co
> From: Thomas Monjalon
> 02/06/2020 04:00, 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
> From: Thomas Monjalon
> 02/06/2020 04:00, Tasnim Bashar:
> > #define pthread_setaffinity_np(thread, size, cpuset) \
> > - eal_set_thread_affinity_mask(thread, (unsigned long *) cpuset)
> > + eal_set_thread_affinity_mask(thread, cpuset)
> > #define pthre
> From: Thomas Monjalon
> Sent: Tuesday, June 16, 2020 12:17 PM
> To: dmitry.kozl...@gmail.com; Tasnim Bashar
> Cc: dev@dpdk.org; harini.ramakrish...@microsoft.com;
> pallavi.ka...@intel.com; ranjit.me...@intel.com; ocard...@microsoft.com;
> navas...@linux.microsoft.com; Tal
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
> 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
&g
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
12 matches
Mail list logo