third_party/threads: Use PTHREAD_MUTEX_RECURSIVE by default
commit3b9b8f5f6d1b99af43e95ec0868404e552a85b73
authorEmil Velikov <emil.l.velikov@gmail.com>
Thu, 19 Mar 2015 22:26:11 +0000 (19 22:26 +0000)
committerChad Versace <chad.versace@intel.com>
Thu, 26 Mar 2015 14:52:06 +0000 (26 07:52 -0700)
treec4560f163ffb5543c763c838b4b3f0ca21b1fab8
parent6a76a1cf50666b651cf5ea89a641715b019dec33
third_party/threads: Use PTHREAD_MUTEX_RECURSIVE by default

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@gmail.com>
Reviewed-by: Chad Versace <chad.versace@intel.com>
third_party/threads/threads_posix.c