[Mesa-dev] [PATCH 1/6] c11: add c11 compatibility wrapper around stdlib.h

Emil Velikov emil.l.velikov at gmail.com
Wed Mar 11 17:07:31 PDT 2015


On 9 March 2015 at 11:54, Jose Fonseca <jfonseca at 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


More information about the mesa-dev mailing list