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.
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:
> -