Emil Velikov <[email protected]> writes: > This will enable it on more platforms than just Linux.
Right, the goal is to use it where available. > You can use AX_PTHREAD here, instead of open-coding it. Thanks. I've updated the series to do this; it's on my input-thread branch in git://people.freedesktop.org/~keithp/xserver > Then again I'm wondering if linking with pthread, won't lead to some > noticeable perf degradation, as a fair few POSIX functions will now > pthread_mutex_lock/unlock as opposed using the Glibc stub. The big concern I had years ago when we looked at this was malloc, but glibc uses arenas to avoid contention, and uncontended mutexes are pretty cheap these days. stdio is a disaster, but we don't use that in any critical paths. I haven't been able to measure any performance impact from this series, but I've only tested on Linux. -- -keith
signature.asc
Description: PGP signature
_______________________________________________ [email protected]: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel
