summaryrefslogtreecommitdiff
path: root/src/audiocacheidmanager.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 15:41:43 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2017-05-06 15:41:43 +0200
commitb7b5b9ee2a9d6cefe9b83589122cedb89c22279c (patch)
treeb7953590423e616d1f61a8ae9a4a2a4ca154d9f5 /src/audiocacheidmanager.h
parent305bc5c31dde06afb3d867abd1b461a98c868a74 (diff)
Remove old (obsolete) Mutex class and replace all uses with std::mutex.
Diffstat (limited to 'src/audiocacheidmanager.h')
-rw-r--r--src/audiocacheidmanager.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/audiocacheidmanager.h b/src/audiocacheidmanager.h
index a5a9755..0aa40e3 100644
--- a/src/audiocacheidmanager.h
+++ b/src/audiocacheidmanager.h
@@ -33,7 +33,6 @@
#include <audiotypes.h>
#include <mutex>
-#include "mutex.h"
class AudioCacheFile;
@@ -42,7 +41,8 @@ class AudioCacheFile;
typedef int cacheid_t;
-typedef struct {
+struct cache_t
+{
cacheid_t id{CACHE_NOID}; //< Current id of this cache_t. CACHE_NOID means not in use.
AudioCacheFile* afile{nullptr};
@@ -55,9 +55,10 @@ typedef struct {
sample_t* preloaded_samples{nullptr}; // nullptr means preload buffer not active.
size_t preloaded_samples_size{0};
-} cache_t;
+};
-class AudioCacheIDManager {
+class AudioCacheIDManager
+{
friend class AudioCacheEventHandler;
public:
AudioCacheIDManager() = default;