[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-gettext] [bug #43404] gl_locale_name_default() thread issues on
Re: [bug-gettext] [bug #43404] gl_locale_name_default() thread issues on OS X
Tue, 14 Oct 2014 09:52:03 +0100
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2
On 10/14/2014 06:53 AM, Daiki Ueno wrote:
> Pádraig Brady <address@hidden> writes:
>> There are many consequences to having multiple threads,
>> so it's worth avoiding/isolating that where possible.
>> You mentioned it would be conditionalized on pthread_is_threaded_np
>> for performance I suppose, as threaded progs would already
>> have to deal with the consequences of a separate thread.
>> So races in pthread_is_threaded_np would only be a small
>> performance issue.
>> Seems like a good idea to me.
> Thanks for the comment. Here is a tentative patch based on the
> PostgreSQL patches. Perhaps it might require a copyright assignment
> from the original author (Cc'ed).
Is AC_CHECK_FUNCS sufficient to find pthread_is_threaded_np()?
I.E. is LIB_PTHREAD required to find this function on darwin?
It's tempting to simplify actually and unconditionally call
the forked version, as this isn't a function that would
be in a hot path.