Maxim
Thu Aug 04 14:05:24 CDT 2005
Yes, APPEND only means - "automatic lseek to the end just before any IO,
applied with the file mutex held".
--
Maxim Shatskih, Windows DDK MVP
StorageCraft Corporation
maxim@storagecraft.com
http://www.storagecraft.com
"Alexander Grigoriev" <alegr@earthlink.net> wrote in message
news:e%23AC5nKmFHA.2472@TK2MSFTNGP15.phx.gbl...
> It's correct. APPEND is only necessary for appending from separate file
> objects.
>
> "Maxim S. Shatskih" <maxim@storagecraft.com> wrote in message
> news:uMOuNEDmFHA.2444@tk2msftngp13.phx.gbl...
> >> You also don't need a mutex if you open the file in APPEND mode.
> >
> > Not necessary. Any synchronous file object a) has internal mutex to
> > serialize
> > writes b) always updates CurrentByteOffset to be the end of the last IO c)
> > always starts the write at CurrentByteOffset.
> >
> > So, opening a synchronous file for writing and seeking to its end after
> > open is
> > enough for logging.
> >
> > --
> > Maxim Shatskih, Windows DDK MVP
> > StorageCraft Corporation
> > maxim@storagecraft.com
> >
http://www.storagecraft.com
> >
> >
>
>