[antlr-interest] Theading Tree Walkers

code_dude at nym.hush.com code_dude at nym.hush.com
Mon Feb 2 12:09:04 PST 2009


Hi Jim,
Will the v3 antlr C++ module be free threading when its finally 
released ?

Regards code_dude

On Mon, 02 Feb 2009 18:56:47 +0000 Jim Idle <jimi at temporal-
wave.com> wrote:
>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
>
>List: http://www.antlr.org/mailman/listinfo/antlr-interest
>Unsubscribe: http://www.antlr.org/mailman/options/antlr-
>interest/your-email-address



More information about the antlr-interest mailing list