Aaron Bannert <[EMAIL PROTECTED]> writes: > On Sun, Oct 20, 2002 at 11:30:35AM -0400, Jeff Trawick wrote: > > Maybe APR_APPEND needs to be cheap/simple append a la stdio append: we > > seek to the end of the file at open time and forget about it after > > that. > > > > Then we need new APR_WRITE_AT_END or something better named which is > > the expensive atomic append. For Unix, this enables O_APPEND on the > > file and the kernel handles the details. For Win32, this enables > > acquire-global-mutex + setfileptr + release-global-mutex prior to > > every write. But then that has issues with non-related processes > > sharing the mutex. > > I like the idea, but yeah, to have a global mutex on windows you have > to give it a filename (so the non-related processes can rendezvous on > the same mutex).
at the very least (if not practical for APR to handle the mutex) we need to set APR_WRITE_AT_END_IS_ATOMIC 0 or 1 depending on the platform characteristics so that apps know when to compile in code for a mutex. nasty... -- Jeff Trawick | [EMAIL PROTECTED] Born in Roswell... married an alien...