IMAP: The connection workers are now started

Operating Systems / Haiku - Axel Dörfler [pinc-software.de] - 6 January 2015 08:25 UTC

- On SyncMessages(), the main connection worker is started if it is not already running (it may only run already in idle mode).
- This will then list the subscribed folders, and create as many more connection workers as allowed and make sense.
- Finally, it will distribute the folders to the workers which don't do anything further yet.

adbe8fc IMAP: The connection workers are now started.
.../imap/IMAPConnectionWorker.cpp | 100 ++++++++++++++++++--
.../inbound_protocols/imap/IMAPConnectionWorker.h | 25 ++++-
.../inbound_protocols/imap/IMAPProtocol.cpp | 85 ++++++++++++++---
.../inbound_protocols/imap/IMAPProtocol.h | 8 ++
.../inbound_protocols/imap/imap_lib/Protocol.cpp | 36 +++----
.../inbound_protocols/imap/imap_lib/Protocol.h | 4 +-
6 files changed, 215 insertions(+), 43 deletions(-)

Upstream: cgit.haiku-os.org


  • Share