decoder: use atomic int instead of mutex for access time
Prevents main thread from getting hung up if the decoder is doing something slow
This commit is contained in:
+1
-1
@@ -315,7 +315,7 @@ private:
|
||||
|
||||
QMutex mutex_;
|
||||
|
||||
qint64 last_accessed_;
|
||||
std::atomic_int64_t last_accessed_;
|
||||
|
||||
TexturePtr cached_texture_;
|
||||
rational cached_time_;
|
||||
|
||||
Reference in New Issue
Block a user