[waffle] [PATCH 1/3] third_party/threads: Use PTHREAD_MUTEX_RECURSIVE by default
Chad Versace
chad.versace at intel.com
Thu Mar 26 07:51:31 PDT 2015
Quoting Emil Velikov (2015-03-19 15:26:11)
> PTHREAD_MUTEX_RECURSIVE_NP was used for compatibility with old glibc.
> Although due to the_GNU_SOURCES define the portable,
> PTHREAD_MUTEX_RECURSIVE will be available for Linuxes since at least
> 1998. Simplify things giving us compatibility with musl which
> apparently does not provide the non-portable define.
>
> Inspired by almost identical commit in mesa aead7fe2e2b(c11/threads: Use
> PTHREAD_MUTEX_RECURSIVE by default) by Felix Janda.
>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
> third_party/threads/threads_posix.c | 10 ++++------
> 1 file changed, 4 insertions(+), 6 deletions(-)
Reviewed-by: Chad Versace <chad.versace at intel.com>
This patch looks safe to land before the others in the series, so I'll
go ahead and commit it.
More information about the waffle
mailing list