[cfe-dev] How can i turn libclang to thread-safe mode?

Argyrios Kyrtzidis 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
> http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20140107/57811dba/attachment.html>


More information about the cfe-dev mailing list