RTE_PER_LCORE(_lcore_id) = lcore_id;
}
-static inline pthread_t
-eal_thread_self(void)
-{
- return GetCurrentThreadId();
-}
-
/* main loop of threads */
void *
eal_thread_loop(void *arg __rte_unused)
int m2s, s2m;
char cpuset[RTE_CPU_AFFINITY_STR_LEN];
- thread_id = eal_thread_self();
+ thread_id = pthread_self();
/* retrieve our lcore_id from the configuration structure */
RTE_LCORE_FOREACH_SLAVE(lcore_id) {
return 0;
}
+/* get current thread ID */
+int
+rte_sys_gettid(void)
+{
+ return GetCurrentThreadId();
+}
+
int
rte_thread_setname(__rte_unused pthread_t id, __rte_unused const char *name)
{