[Mesa-dev] [PATCH 2/2] clover: Use threadsafe wrappers for pipe_context v2

2015-07-10 Thread Tom Stellard
Events can be added to an OpenCL command queue concurrently from multiple threads, but pipe_context bjects are not threadsafe. The threadsafe wrappers protect all pipe_context function calls with a mutex, so we can safely use them with multiple threads. v2: - Don't use wrapper for pipe_screen.

Re: [Mesa-dev] [PATCH 2/2] clover: Use threadsafe wrappers for pipe_context v2

2015-07-11 Thread Francisco Jerez
Tom Stellard writes: > Events can be added to an OpenCL command queue concurrently from multiple > threads, but pipe_context bjects are not threadsafe. The threadsafe > wrappers protect all pipe_context function calls with a mutex, so we > can safely use them with multiple threads. > > v2: > -