[dpdk-dev] [PATCH v1 38/72] net/mlx5/windows: add pthread initializer definition

Thomas Monjalon thomas at monjalon.net
Wed Oct 28 08:21:21 CET 2020


28/10/2020 00:23, Ophir Munk:
> PTHREAD_MUTEX_INITIALIZER is a Linux macro defined in
> /usr/include/pthread.h. It is used by mlx5 PMD but it is not included
> in DPDK Windows pthread implementation. Therefore define it privately
> in windows/mlx5_os.h file.

You should not define EAL stuff privately in the PMD.
I remember Microsoft discouraged the definition of mutex initializer.
Instead we have pthread_mutex_init().





More information about the dev mailing list