pthread.h: Add PTHREAD_RWLOCK_INITIALIZER macro.

Signed-off-by: Augustin Cavalier <waddlesplash@gmail.com>
Fixes #8798. One tiny style fix by me (adding spaces around braces).
This commit is contained in:
Joseph C, Hill 2017-05-27 14:35:25 +01:00 committed by Augustin Cavalier
parent 2f0ca6974e
commit 17286dc70a

View File

@ -80,6 +80,8 @@ extern "C" {
{ PTHREAD_MUTEX_RECURSIVE, 0, -42, -1, 0 }
#define PTHREAD_COND_INITIALIZER \
{ 0, -42, NULL, 0, 0 }
#define PTHREAD_RWLOCK_INITIALIZER \
{ 0, 0, NULL }
/* mutex functions */
extern int pthread_mutex_destroy(pthread_mutex_t *mutex);