mirror of
https://github.com/overte-org/overte.git
synced 2025-04-15 11:29:00 +02:00
resource mutex issues
(cherry picked from commit 750629a6194ec98534746a377b3ba027c1dcc20e) (cherry picked from commit fc5ab3289a5f88f245c2825edd085532bd4c97ca)
This commit is contained in:
parent
d0181283dd
commit
1444b3a186
2 changed files with 3 additions and 1 deletions
|
@ -740,6 +740,8 @@ void Resource::handleReplyFinished() {
|
|||
|
||||
setSize(_bytesTotal);
|
||||
|
||||
// Make sure we keep the Resource alive here
|
||||
auto self = _self.lock();
|
||||
ResourceCache::requestCompleted(_self);
|
||||
|
||||
auto result = _request->getResult();
|
||||
|
|
|
@ -62,7 +62,7 @@ static const qint64 MAX_UNUSED_MAX_SIZE = MAXIMUM_CACHE_SIZE;
|
|||
class ResourceCacheSharedItems : public Dependency {
|
||||
SINGLETON_DEPENDENCY
|
||||
|
||||
using Mutex = std::mutex;
|
||||
using Mutex = std::recursive_mutex;
|
||||
using Lock = std::unique_lock<Mutex>;
|
||||
|
||||
public:
|
||||
|
|
Loading…
Reference in a new issue