imageworks/OpenShadingLanguage — pull request #90 by lgritz (2011-11-04 23:27:14+00:00)
Title: Review: Lock the JIT -- LLVM 2.9 thread safety bug

Lock the JIT -- looks like at least one bug in LLVM 2.9 makes the JIT not thread-safe!

Also put a lock and flag inside SetupLLVM to be sure two SS's setting up simultaneously don't have a problem, and that multiple SS setup/teardowns don't doubly initialize LLVM.