[dpdk-dev] [RFC] eal: introduce function to get lcore thread id

David Marchand david.marchand at redhat.com
Tue Oct 20 15:38:51 CEST 2020


On Mon, Aug 10, 2020 at 11:37 AM Mattias Rönnblom
<mattias.ronnblom at ericsson.com> wrote:
>
> Introduce function in <rte_lcore.h> to retrieve a lcore worker
> thread's pthread id.
>
> This change allows applications to do things like changing the name of
> a lcore thread, or detect if it's getting interrupted (e.g. getting
> preempted by another thread).
>
> Signed-off-by: Mattias Rönnblom <mattias.ronnblom at ericsson.com>

I can see no feedback.
I am a bit reluctant at giving access to this info which is not really
abstracted across OS..
Is there no other way to achieve what you wanted?


-- 
David Marchand



More information about the dev mailing list