Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: Concurrent access to data file

From: petr:krenzelok:trz:cz at: 19-Feb-2001 11:29

Hi, I don't have currently enough free time to read whole your email, but I would like to suggest you to use semaphore like solution: sem: open/new %semaphore.sem ->> error? try [delete %semaphore.sem] == true You can't delete your semaphore file while OS holds lock on it .... but be carefull and don't open several instances of 'sem ... The advantage here is - even if your app crashes, the solution will work, because OS will free lock it holds upon the file and rebol will succesfully delete it ... or so I think :-) Hope this helps, Cheers, -pekr- CRS - Psy Sel/SPO, COUSSEMENT Christophe, CPN wrote: