Function retina_core::rte_lcore_id
source · pub unsafe fn rte_lcore_id() -> u16
Expand description
Returns the application thread ID of the execution unit.
In most cases, the lcore ID returned will correspond to the processor ID of the CPU on which the thread is pinned, but this will not be the case if the user has explicitly changed the thread-to-core affinities.
§Remarks
This is unsafe
because it calls the DPDK rte_lcore_id()
function via FFI. Use at your
own risk.