#include <sched.h>
#include <pthread_np.h>
#include <sys/queue.h>
+#include <sys/thr.h>
#include <rte_debug.h>
#include <rte_atomic.h>
/* pthread_exit(NULL); */
/* return NULL; */
}
+
+/* require calling thread tid by gettid() */
+int rte_sys_gettid(void)
+{
+ long lwpid;
+ thr_self(&lwpid);
+ return (int)lwpid;
+}