[LLVMdev] lli threads
sabre at nondot.org
Mon Sep 18 22:06:32 PDT 2006
On Mon, 18 Sep 2006, Sarah Thompson wrote:
> How does threading work in lli, particularly in interpreted (non-JIT)
> mode? I've tried to find direct references in the code and couldn't, so
> am I right in assuming that it's expected that any underlying OS's
> threading will be used? If so, how does this work with respect to (I
> assume) needing to maintain explicitly separate execution context stacks
> for each thread?
The interpreter hasn't been made explicitly thread-aware. The JIT has
though, it will use pthread mutexes to protect itself.
More information about the llvm-dev