[antlr-interest] Theading Tree Walkers

Jim Idle jimi at temporal-wave.com
Mon Feb 2 10:56:47 PST 2009


Loring Craymer wrote:
> C++ garbage collection (uses reference counting in ASTRef) for ANTLR 2 is _not_ thread safe, nor was it intended to be.  You'll have to judiciously add in lock/unlock calls to make it so.  AFAIK, no one has taken the effort to make any of the ANTLR runtimes thread safe, nor is there any reason to do so under normal conditions--ANTLR operates serially on input data, including trees.
>   
The 3.1 C runtime is free threading :-)

Jim


More information about the antlr-interest mailing list