Re: [HACKERS] libpq thread safety - Mailing list pgsql-patches

From Manfred Spraul
Subject Re: [HACKERS] libpq thread safety
Date
Msg-id 405E83EB.9000701@colorfullife.com
Whole thread Raw
In response to Re: [HACKERS] libpq thread safety  (Bruce Momjian <pgman@candle.pha.pa.us>)
List pgsql-patches
Bruce Momjian wrote:

>I could not get this patch to compile.  I am getting a failure because
>BSD/OS doesn't have pthread_rwlock_wrlock().  I am concerned other
>platforms might not have it either.
>
>
I feared that. I'll switch to pthread_mutex_lock()+_unlock().
pthread_rwlock_wrlock()+_unlock was faster in some tests - wrlocks do
not need to be async signal safe.

I'll send a new patch.
--
    Manfred


pgsql-patches by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] UnixWare/CVS Tip/initdb.c needs to use threads
Next
From: Karel Zak
Date:
Subject: Re: pstrndup()