diff options
author | Chris Wilson <chris+github@qwirx.com> | 2007-03-24 23:40:19 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2007-03-24 23:40:19 +0000 |
commit | 2634fe0205981c5a7606d1fdc426f966f272c3d0 (patch) | |
tree | dcef9e1166a65377442a44458d228cb1e20fdd8e /bin/bbackupd/BackupDaemon.h | |
parent | d54680e632e0d5b142568e620dde069820a9476d (diff) |
Move all command socket communications to the worker thread, to avoid
deadlocks.
Use events, and a message list protected by a critical section, to pass
messages between threads.
(refs #3)
Diffstat (limited to 'bin/bbackupd/BackupDaemon.h')
-rw-r--r-- | bin/bbackupd/BackupDaemon.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/bbackupd/BackupDaemon.h b/bin/bbackupd/BackupDaemon.h index 64b06949..8895019d 100644 --- a/bin/bbackupd/BackupDaemon.h +++ b/bin/bbackupd/BackupDaemon.h @@ -346,7 +346,10 @@ public: void RunHelperThread(void); private: - bool mDoSyncFlagOut, mSyncIsForcedOut, mReceivedCommandConn; + bool mDoSyncFlagOut, mSyncIsForcedOut; + HANDLE mhMessageToSendEvent, mhCommandReceivedEvent; + CRITICAL_SECTION mMessageQueueLock; + std::vector<std::string> mMessageList; #endif }; |