[PATCH] eal: introduce missing rte_thread wrappers
David Vodak
vodak at cesnet.cz
Tue Nov 28 09:54:02 CET 2023
On 11/27/23 18:27, Tyler Retzlaff wrote:
> On Mon, Nov 27, 2023 at 10:25:02AM +0100, David Vodak wrote:
>> Function rte_ctrl_thread_create has been replaced by rte_thread_create_control,
>> encouraging Linux users to switch from the pthread_t API to the rte_thread API.
>> However the rte_thread API does not provide wrappers for all pthread functions.
>> This commit introduces equivalent functions for pthread_timedjoin_np,
>> pthread_getname_np and pthread_cancel.
>>
>> Bugzilla ID: 1330
>> ---
> NAK this series. the rte thread API is not a POSIX emulation API.
>
> the point of EAL is not to require applications to have to conditionally
> compile code around the use of EAL API or handle "not supported"
> failures it defeats the purpose of being an abstraction library.
Hi,
I understand that these changes may not be the best alternative. But
what other options do we have,
if we are already using functions such as pthread_timedjoin_np? Should
we just keep using them and
treat rte_thread_id.opaque_id as pthread_t?
Regards
David Vodak
More information about the dev
mailing list