Applied: PATCH for thread-safe C++ static local initialization
Mon Aug 30 19:03:00 GMT 2004
On Aug 30, 2004, at 10:07 AM, Richard Earnshaw wrote:
>> BTW, does the NetBSD pthreads package not support static
>> initialization of
>> recursive mutexes? The code that references those routines is the
>> fallback for targets that don't, but I'd like to use static
>> wherever possible.
> No idea. Jason, do you know?
No, to initialize a mutex as recursive, you must pthread_mutex_init()
with a mutexattr that has been settype'd to PTHREAD_MUTEX_RECURSIVE.
-- Jason R. Thorpe <firstname.lastname@example.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 186 bytes
Desc: This is a digitally signed message part
More information about the Gcc-patches