On 9 March 2015 at 11:54, Jose Fonseca <jfons...@vmware.com> wrote: > On 07/03/15 19:38, Emil Velikov wrote: >> >> On 07/03/15 07:23, Jose Fonseca wrote: >> ... >>> >>> we still >>> didn't eliminate the use of non-portable _MTX_INITIALIZER_NP from Mesa >>> tree gave me pause. >>> >> The only way I can think about resolving this, is to use call_once() to >> initialize the mutex, > > > Yes, I'm afraid so. > Which makes me wonder, why does no other place in mesa (be that glx, gallium etc.) do so already ?
Also it seem that some places might have to stick to pthreads. Haven't checked the details though. * src/glx/apple pthread_threadid_np pthread_is_threaded_np * src/gallium/auxiliary/os pthread_sigmask pthread_setname_np * src/gallium/state_trackers/omx/ pthread_join ? missing a matching thread_create Cheers, Emil _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev