* Get system unique thread id. * * @return * On success, returns the thread ID of calling process. * It is always successful. */
| 436 | * It is always successful. |
| 437 | */ |
| 438 | static inline int rte_gettid(void) |
| 439 | { |
| 440 | if (RTE_PER_LCORE(_thread_id) == -1) |
| 441 | RTE_PER_LCORE(_thread_id) = rte_sys_gettid(); |
| 442 | return RTE_PER_LCORE(_thread_id); |
| 443 | } |
| 444 | |
| 445 | /** |
| 446 | * Get the OS-specific EAL base address. |
no test coverage detected