Fix JIT on separate thread
Fix JIT on separate thread

When JIT_IN_SEPARATE_THREAD is defined we generate Reactor routines on
LLVM in a new thread. Since concurrent code generation was enabled by
making ::jit thread-local, we need to assign it the pointer of the
thread that creates the new thread.

Bug: b/153803432
Change-Id: Ia7454ac5823d61a1fb139b337d2af2de3a5104af
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/44048
Tested-by: Nicolas Capens <51edc787c30f24c4904e8ffbb5523c3a9f7a451d@google.com>
Reviewed-by: Ben Clayton <1f693eb7158dc33015048c09d6712f74dabddf79@google.com>

bkaradzic/SwiftShader,google/swiftshader,google/swiftshader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,bkaradzic/SwiftShader,google/swiftshader