[Box Backup-dev] COMMIT r476 - box/chris/general/bin/bbackupd
Ben Summers
boxbackup-dev at fluffy.co.uk
Mon Feb 20 08:54:30 GMT 2006
On 20 Feb 2006, at 00:01, subversion at fluffy.co.uk wrote:
> Author: chris
> Date: 2006-02-20 00:01:05 +0000 (Mon, 20 Feb 2006)
> New Revision: 476
>
> Modified:
> box/chris/general/bin/bbackupd/BackupDaemon.cpp
> Log:
> * BackupDaemon.cpp
> - Use overlapped I/O and IPC to avoid writing to control socket while
> another thread is reading from it, which causes race conditions and
> deadlocks
Wow. This is complex. Would using critical sections and perhaps
PeekNamedPipe be less complicated? I can't believe overlapped I/O and
messaging is necessary, and think we should strive for simplicity.
I am curious as to why it's necessary.
Ben
More information about the Boxbackup-dev
mailing list