Keith Packard <kei...@keithp.com> writes:

> Mark Kettenis <mark.kette...@xs4all.nl> writes:
>
>> However, is there a reason why you didn't use the
>> PTHREAD_MUTEX_RECURSIVE mtex type that is standardized by POSIX?
>
> Sorry, my documentation only mentions a non-portable version of
> recursive mutexes. I didn't even know that recursive mutexes had been
> standardized. Looks like we've got options.

So, how about this preference plan, picking the first one which works:

 1) PTHREAD_MUTEX_RECURSIVE
 2) PTHREAD_MUTEX_RECURSIVE_NP
 3) PTHREAD_MUTEX_NORMAL + __thread variable
 4) PTHREAD_MUTEX_NORMAL + thread specific variables
 
-- 
-keith

Attachment: signature.asc
Description: PGP signature

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: http://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to