[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Atomicity under Windows

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2002-06-09 22:32:03 CEST

Okay, so it looks like one can get portable concurrency atomicity using
apr_file_lock() (which uses LockFile() on Windows) or with
apr_file_open() with the APR_EXCL flag (which calls CreateFile() with
the CREATE_NEW flag on Windows). That's definitely good to know.

Failure atomicity looks harder. There's no APR interface to the
FILE_FLAG_WRITE_THROUGH create flag; even if this were corrected (and
I'm not sure if it can be, since there's no Unix analog), I'm not sure
how much of a gurantee it gives for file operations. And there would
still be directory operations to worry about.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Jun 9 22:32:38 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.