pthread.h: Add PTHREAD_RWLOCK_INITIALIZER macro.
Signed-off-by: Augustin Cavalier <[email protected]> Fixes #8798. One tiny style fix by me (adding spaces around braces).
This commit is contained in:
committed by
Augustin Cavalier
parent
2f0ca6974e
commit
17286dc70a
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user