3 Aug
2018
3 Aug
'18
12:35 a.m.
On 2 August 2018 at 21:23, Chip Davis <cdavis(a)codeweavers.com> wrote:
#ifdef HAVE_PTHREAD_SETNAME_NP +#ifdef __APPLE__ + pthread_setname_np("vkd3d_worker"); +#else pthread_setname_np(pthread_self(), "vkd3d_worker"); +#endif #endif
I don't think we want to be sprinkling "#ifdef __APPLE__" across the code. If we really want this to work (as opposed to e.g. making the configure check for pthread_setname_np() more strict), it should probably go into some header.