[cfe-dev] How can i turn libclang to thread-safe mode?
akyrtzi at gmail.com
Tue Jan 7 18:07:18 PST 2014
On Jan 6, 2014, at 9:54 AM, Anton Smirnov <dev at antonsmirnov.name> wrote:
> I'm using Clang via libclang. I've found llvm_start_multithreaded() so is it possible to turn libclang to thread-safe mode with it? Does it affect libclang for parsing, tokenizing, indexing?
This is already called by libclang. I believe accessing different CXTranslationUnits concurrently is fine, but the CXTranslationUnit itself is not thread-safe.
> Regards, Anton.
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev