"Pavel Vozenilek" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > From: "David Abrahams" <[EMAIL PROTECTED]> > > I need the ability to do interprocess synchronization through file > > locking, c.f. Java.File.createNewFile and Java.File.deleteOnExit: > ... > > On Posix, the first one would be done with > > open(..., O_CREAT | O_EXCL) > > > > and the second, I suppose, would be done with a terminate handler. > > > > The second feature (delete-on-exit) is supported by OS: > - on Win32 using FILE_FLAG_DELETE_ON_CLOSE flag in CreateFile() > - on Unix using unlink() standard system call
FILE_FLAG_DELETE_ON_CLOSE deletes the file when the last handle is closed, not when the process is terminated. It is therefore similar, but not quite the same. -- Craig _______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost