[cfe-users] Thread safety in clang

David Blaikie dblaikie at gmail.com
Tue Apr 16 16:46:01 PDT 2013

On Tue, Apr 16, 2013 at 3:42 AM, Miguel Guedes
<miguel.a.guedes at gmail.com> wrote:
> Hello List,
> Has any work been done on libclang and its underlying infrastructure to
> make it thread safe or is it not yet thread safe?

I assume/believe that, at the Clang level (not sure about libclang),
if you use a separate ASTContext, etc, then there shouldn't be any
hidden shared state - so you can use those separate contexts, each
from a single but distinct thread, separately.

More information about the cfe-users mailing list