Locks was Re: [antlr-interest] ANTLR 3.0ea1 and ANTLRWorks 1.0ea1 released!

Terence Parr parrt at cs.usfca.edu
Fri Jun 3 12:15:20 PDT 2005


On Jun 2, 2005, at 2:31 PM, Matthew Ford wrote:

> A basic problem with Java file locks is that you cannot lock a file  
> before
> it exists and has been opened.
> I gave up on Java locks and wrote my own lock table (hash table on the
> cononical filename)

Hi Matthew, yep, I could do it for one VM with one word:  
synchronized, but I needed it to work across multiple VMs on the same  
machine.

Thanks
Ter
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com



More information about the antlr-interest mailing list