src/dpdk/lib/librte_eal/include/rte_eal.h
static inline int rte_gettid(void)
{
	if (RTE_PER_LCORE(_thread_id) == -1)
		RTE_PER_LCORE(_thread_id) = rte_sys_gettid();
	return RTE_PER_LCORE(_thread_id);
}
/**
 * Get system unique thread id.
 *
 * @return
 *   On success, returns the thread ID of calling process.
 *   It is always successful.
 */
Get system unique thread id.
@return
On success, returns the thread ID of calling process.
It is always successful.
Get system unique thread id . @return On success returns the thread ID of calling process . It is always successful .
static inline int rte_gettid(void)
{
	if (RTE_PER_LCORE(_thread_id) == -1)
		RTE_PER_LCORE(_thread_id) = rte_sys_gettid();
	return RTE_PER_LCORE(_thread_id);
}
static inline int rte_gettid ( void ) { if ( RTE_PER_LCORE ( _thread_id ) == -1 ) RTE_PER_LCORE ( _thread_id ) = rte_sys_gettid ( ) ; return RTE_PER_LCORE ( _thread_id ) ; }
Get system unique thread id.
Get system unique thread id .