diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-03 11:17:08 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-03 11:23:25 +0100 |
commit | 0f75ad4b96ec5994c022109278cad28a43255793 (patch) | |
tree | 6d7c6153025a79557dd1218d9be0a4a7cb7945c5 /common/resourceaccess.h | |
parent | 2c80424031c195333cfa6785ea7ab57dc9613fa3 (diff) | |
download | sink-0f75ad4b96ec5994c022109278cad28a43255793.tar.gz sink-0f75ad4b96ec5994c022109278cad28a43255793.zip |
Improved resource access caching
* Smarter caching. ResourceAccess instances close after a timeout, if not reused.
* Introduced a start command to avoid race condition when sending
commands to a resource that is currently shutting down.
* We resend pending commands after we lost access to the resource
* unexpectedly.
Diffstat (limited to 'common/resourceaccess.h')
-rw-r--r-- | common/resourceaccess.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/resourceaccess.h b/common/resourceaccess.h index 527cfa3..7f61b30 100644 --- a/common/resourceaccess.h +++ b/common/resourceaccess.h | |||
@@ -102,6 +102,7 @@ private: | |||
102 | 102 | ||
103 | void sendCommand(const QSharedPointer<QueuedCommand> &command); | 103 | void sendCommand(const QSharedPointer<QueuedCommand> &command); |
104 | void processCommandQueue(); | 104 | void processCommandQueue(); |
105 | void processPendingCommandQueue(); | ||
105 | 106 | ||
106 | class Private; | 107 | class Private; |
107 | Private * const d; | 108 | Private * const d; |