[prev in list] [next in list] [prev in thread] [next in thread]
List: haiku-commits
Subject: [haiku-commits] Re: haiku: hrev51184 - headers/posix
From: Hamish Morrison <hamishm53 () gmail ! com>
Date: 2017-05-29 12:20:30
Message-ID: da80f830-d2ff-5543-d5b8-52a88afa04a8 () gmail ! com
[Download RAW message or body]
On 27/05/2017 17:47, waddlesplash@gmail.com wrote:
> --- a/headers/posix/pthread.h
> +++ b/headers/posix/pthread.h
> @@ -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 }
>
I'm afraid this won't work. pthread_rwlock_init creates semaphores and
constructs C++ objects:
http://cgit.haiku-os.org/haiku/tree/src/system/libroot/posix/pthread/pthread_rwlock.cpp#n105
This static initialiser leaves the semaphore in an unusable state.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic