[cfe-dev] cland and multi-threading

Paul Curtis plc at rowley.co.uk
Fri Dec 10 07:47:02 PST 2010


> I have another question, which I couldn't readily find the answer for.
> 
> Given a single CXIndex, is it possible to run two (or more) parses
> using the clang API in parallel?  That is, could I create two threads
> and have two
> clang_parseTranslationUnit() calls running in different threads, using
> different translation units, concurrently?

...and just to clarify, I create the threads externally, I don't expect the
clang C API to create them...

--
Paul Curtis, Rowley Associates Ltd   http://www.rowley.co.uk
SolderCore arriving Winter 2010!   http://www.soldercore.com








More information about the cfe-dev mailing list