Pushed.
Thanks for investigating this and coming up with a clean solution.
-Tom
On Sat, Aug 18, 2012 at 11:43:51AM +0200, Mathias Fröhlich wrote:
> This is required to make some of llvm's api calls
> thread save. In particular the PassRegistry, which is
> implicitly accessed while compiling shad
This is required to make some of llvm's api calls
thread save. In particular the PassRegistry, which is
implicitly accessed while compiling shader programs.
The PassRegistry uses a mutex that is only active if
the llvm_is_multithreaded() returns true.
Calling llvm_start_multithreading() makes this