On Thu, Aug 19, 2021 at 02:31:34PM -0700, Narcisa Ana Maria Vasile wrote: > From: Narcisa Vasile <navas...@microsoft.com> > > As a new API for threading is introduced, > a set of unit tests have been added to test the new interface. > > Signed-off-by: Narcisa Vasile <navas...@microsoft.com> > --- > app/test/meson.build | 2 + > app/test/test_threads.c | 419 ++++++++++++++++++++++++++++++++++++++++ > 2 files changed, 421 insertions(+) > create mode 100644 app/test/test_threads.c >
There's a failure here on Alpine Linux: "error: implicit declaration of function 'pthread_attr_setaffinity_np'; did you mean 'pthread_setaffinity_np'? [-Werror=implicit-function-declaration]" It looks like "pthread_attr_setaffinity_np" is not available on Alpine Linux. However, other affinity functions such as "pthread_setaffinity_np" are present. Is there a guard that I can use here to check if the pthread_*_np functions are available, similar to RTE_HAS_CPUSET for cpuset?