<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>Hi,<br></div>
<div> </div>
<div>Since the AST should be immutable once created, and AST matchers are only a high-level wrapper for RecursiveASTVisitor, so I'd expect no problems with multithreading. This definitely needs to be confirmed though by someone who actually knows what they are talking about. :)<br></div>
<div> </div>
<div>Just out of curiosity, what is your use case? Navigating the AST is fast, especially compared to the cost of building the AST. Are you running a huge number of matchers?</div>
<div> </div>
<div id="sig19426269"><div class="signature">-- <br></div>
<div class="signature">  Gábor Kozár -- ShdNx<br></div>
<div class="signature">  kozargabor@gmail.com<br></div>
<div class="signature"> </div>
</div>
<div> </div>
<div> </div>
<div>On Tue, Sep 24, 2013, at 10:15, Jesper Eskilson wrote:<br></div>
<blockquote type="cite"><div> </div>
<div>Hi,<br></div>
<div> </div>
<div>Are the AST matchers thread safe? I have a bunch of matchers which I <br></div>
<div>would like to run in separate threads for performance reasons. Is that <br></div>
<div>expected to work, or am I overly optimistic?<br></div>
<div> </div>
<div>/Jesper<br></div>
<div> </div>
<div>-- <br></div>
<div>*Jesper Eskilson* /Development Engineer/<br></div>
<div>IAR Systems AB<br></div>
<div>Box 23051, Strandbodgatan 1<br></div>
<div>SE-750 23 Uppsala, SWEDEN<br></div>
<div>E-mail: <a href="mailto:jesper.eskilson@iar.com">jesper.eskilson@iar.com</a> <<a href="mailto:jesper.eskilson@iar.com">mailto:jesper.eskilson@iar.com</a>> <br></div>
<div>Website: www.iar.com<br></div>
<div><<a href="http://www.iar.com">http://www.iar.com</a>> Twitter: www.twitter.com/iarsystems <br></div>
<div><<a href="http://www.twitter.com/iarsystems">http://www.twitter.com/iarsystems</a>><br></div>
<div><u>_______________________________________________</u><br></div>
<div>cfe-dev mailing list<br></div>
<div><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br></div>
<div><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></div>
</blockquote></body>
</html>