Skip to content

util: Handle differences in pthread_setname_np

Matt Turner requested to merge mattst88/mesa:pthread_setname_np into master

There are a lot of unfortunate differences in the implementation of this function. NetBSD and Mac OS X in particular require different arguments.

https://stackoverflow.com/questions/2369738/how-to-set-the-name-of-a-thread-in-linux-pthreads/7989973#7989973 provides for a good overview of the differences.

Fixes: 9c411e02 ("util: Drop preprocessor guards for glibc-2.12") Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=111264

Merge request reports