c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default
authorFelix Janda <felix.janda@posteo.de>
Mon, 2 Feb 2015 19:04:16 +0000 (20:04 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 16 Mar 2015 20:41:39 +0000 (20:41 +0000)
commitaead7fe2e2b6c89258f80a25299f4ec0fece2d95
treebd22f92076d582acfc991974a9acd4633c6406f8
parentb5f19db9766ac54d78b8087b0433011f908ebd2c
c11/threads: Use PTHREAD_MUTEX_RECURSIVE by default

Previously PTHREAD_MUTEX_RECURSIVE_NP had been used on linux for
compatibility with old glibc. Since mesa defines __GNU_SOURCE__
on linux PTHREAD_MUTEX_RECURSIVE is also available since at least
1998. So we can unconditionally use the portable version
PTHREAD_MUTEX_RECURSIVE.

Cc: "10.5" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=88534
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
include/c11/threads_posix.h