Re: [Piglit] [PATCH 1/2] glx: Replace extra mutexes with XInitThreads

2012-11-19 Thread Paul Berry
On 19 November 2012 13:26, Eric Anholt wrote: > Paul Berry writes: > > > From: Ian Romanick > > > > To use multithreading with xlib, you're supposed to call XInitThreads > > before any other xlib call. Without this, xlib and GLX calls won't be > > thread safe. It looks like this test had an e

Re: [Piglit] [PATCH 1/2] glx: Replace extra mutexes with XInitThreads

2012-11-19 Thread Eric Anholt
Paul Berry writes: > From: Ian Romanick > > To use multithreading with xlib, you're supposed to call XInitThreads > before any other xlib call. Without this, xlib and GLX calls won't be > thread safe. It looks like this test had an extra mutex to work > around the lack of thread saftey in glXC

[Piglit] [PATCH 1/2] glx: Replace extra mutexes with XInitThreads

2012-11-19 Thread Paul Berry
From: Ian Romanick To use multithreading with xlib, you're supposed to call XInitThreads before any other xlib call. Without this, xlib and GLX calls won't be thread safe. It looks like this test had an extra mutex to work around the lack of thread saftey in glXCreateContext and glXMakeCurrent.