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 <tbas...@mellanox.com> --- lib/librte_eal/windows/eal_thread.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/librte_eal/windows/eal_thread.c b/lib/librte_eal/windows/eal_thread.c index e149199a6f..18f03c4280 100644 --- a/lib/librte_eal/windows/eal_thread.c +++ b/lib/librte_eal/windows/eal_thread.c @@ -157,6 +157,12 @@ eal_thread_create(pthread_t *thread) return 0; } +/* get current thread ID */ +int rte_sys_gettid(void) +{ + return (int)eal_thread_self(); +} + int rte_thread_setname(__rte_unused pthread_t id, __rte_unused const char *name) { -- 2.16.1.windows.4