[PATCH xserver 4/8] Create a threaded mechanism for input [v3]

Keith Packard keithp at keithp.com
Fri Dec 11 15:37:24 PST 2015


Keith Packard <keithp at keithp.com> writes:

> Mark Kettenis <mark.kettenis at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20151211/4fcc18be/attachment.sig>


More information about the xorg-devel mailing list