file locks
llee
llee at goucher.edu
Wed Jul 30 13:40:34 PDT 2008
Koroskin Denis Wrote:
> On Wed, 30 Jul 2008 20:14:59 +0400, llee <llee at goucher.edu> wrote:
>
> > Is there any way to lock a file in D. I'm writing an application that
> > needs to support concurrent access to a file, and would like to lock the
> > file during write operations to prevent other process instances from
> > reading invalid data.
>
> In Tango, when you create a FileConduit you specify a Share attribute that
> affects concurrent file access policy:
>
> enum Share : ubyte {
> None=0, /// no sharing
> Read, /// shared reading
> ReadWrite, /// open for anything
> }
>
> Is it what are you looking for?
Looks good, but I'm using Phobos.
More information about the Digitalmars-d-learn
mailing list