Re: [Mesa-dev] [PATCH] c11/threads: create mutexattrs only when needed

2016-05-14 Thread Emil Velikov
Any comments on the patch and/or discussion after the --- line ? On 24 April 2016 at 16:14, Emil Velikov wrote: > From: Emil Velikov > > If the mutexattrs are the default one can just pass NULL to > pthread_mutex_init. As the compiler does not know this detail it > unnecessarily creates/destroys

[Mesa-dev] [PATCH] c11/threads: create mutexattrs only when needed

2016-04-24 Thread Emil Velikov
From: Emil Velikov If the mutexattrs are the default one can just pass NULL to pthread_mutex_init. As the compiler does not know this detail it unnecessarily creates/destroys the attrs. Signed-off-by: Emil Velikov --- While going through GLVND, I've noticed that it (sort of) breaks its assumpti