From b70a58f95a3a09efdb3343b8775015ef1e913da6 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Mon, 29 May 2017 10:54:41 -0400 Subject: [PATCH] pthread.h: Remove PTHREAD_RWLOCK_INITIALIZER macro. This reverts commit 17286dc70a81d1aa8d853a73db0b0ebe79e6ed9a. As discussed on the mailing list. As it turns out, this was less than half of an actual implementation of this macro, and there's technically no way to implement it without introducing (theoretical) race conditions, in the current design anyway. --- headers/posix/pthread.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/headers/posix/pthread.h b/headers/posix/pthread.h index 3084cb0b76..489aace5ba 100644 --- a/headers/posix/pthread.h +++ b/headers/posix/pthread.h @@ -80,8 +80,6 @@ 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);