in reply to Re: Atomic operation
in thread Atomic operation

Works fine in Windows too.

Replies are listed 'Best First'.
Re^3: Atomic operation
by tilly (Archbishop) on Jul 20, 2009 at 18:29 UTC
    I believe the semantics on Windows differ slightly from *nix. (On Unix locks are advisory, on Windows they are mandatory.) Also the semantics on *nix vary based on the filesystem. (NFS is different than remote Windows is different from local filesystem.)

    Which underscores the importance of having a unit test.

      on Windows they are mandatory

      hum, I was sure Windows had both kinds, but I can't find anything on advisory locks.

      flock creates mandatory locks on Windows. I did not know that.