diff options
author | Alexander Tkachev | 2016-06-01 12:39:10 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | a66322408f95ff7b29cf6967eaecaac06dfe5b31 (patch) | |
tree | a55a9390a3ab12566aec0478e633d30ae988103d /backends/cloud/storagefile.cpp | |
parent | 4b3a8be0b9db448971e6095a24501c66714c484f (diff) | |
download | scummvm-rg350-a66322408f95ff7b29cf6967eaecaac06dfe5b31.tar.gz scummvm-rg350-a66322408f95ff7b29cf6967eaecaac06dfe5b31.tar.bz2 scummvm-rg350-a66322408f95ff7b29cf6967eaecaac06dfe5b31.zip |
CLOUD: Implement Storage's isWorking()
It now keeps track of how many Requests are running.
To achieve that, we had to pass a callback to ConnectionManager, so each
Request has a callback paired with it. If that's one of Storage's
Requests, it has a callback, which would decrease a counter. When
Storage adds a Request, it also increases a counter and passes that
callback. Callback is called by ConnMan when Request is deleted.
isWorking() returns true if there is at least one Request running.
Diffstat (limited to 'backends/cloud/storagefile.cpp')
0 files changed, 0 insertions, 0 deletions