[Box Backup-dev] COMMIT r896 - box/chris/merge/lib/raidfile
Chris Wilson
boxbackup-dev@fluffy.co.uk
Sun, 15 Oct 2006 01:15:51 +0100 (BST)
Hi Charles,
On Sat, 14 Oct 2006, Charles Lecklider wrote:
> Chris Wilson wrote:
>> What exactly is the lock protecting against? Simultaneous writes to the
>> same file by RaidFileWrite?
>
> I think this is a red herring.
>
> We shouldn't need explicit locking under Win32 if we pass a 0
> dwShareMode parameter to CreateFile().
Good point, thanks for the simple solution Charles!
Cheers, Chris.
--
_ ___ __ _
/ __/ / ,__(_)_ | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |