[ui] Corrected concurrent accesses for covers

This commit is contained in:
emeric
2015-03-22 13:08:43 +01:00
parent 8a0447f813
commit 94df478324
2 changed files with 26 additions and 9 deletions
+3
View File
@@ -20,6 +20,8 @@
#ifndef COVER_RESOURCE_HPP_
#define COVER_RESOURCE_HPP_
#include <mutex>
#include <boost/foreach.hpp>
#include <boost/filesystem.hpp>
@@ -45,6 +47,7 @@ class CoverResource : public Wt::WResource
private:
std::mutex _mutex;
Database::Handler& _db;
std::size_t _size;
CoverArt::CoverArt _defaultCover;