This mutex should not have been made local, thanks @unknownbrackets

This commit is contained in:
Henrik Rydgård 2017-03-13 16:13:18 +01:00
parent a8310249f8
commit ad5bf8c6f6
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,8 @@ extern "C"
#include "ext/libkirk/kirk_engine.h" #include "ext/libkirk/kirk_engine.h"
}; };
std::mutex NPDRMDemoBlockDevice::mutex_;
BlockDevice *constructBlockDevice(FileLoader *fileLoader) { BlockDevice *constructBlockDevice(FileLoader *fileLoader) {
// Check for CISO // Check for CISO
if (!fileLoader->Exists()) if (!fileLoader->Exists())

View File

@ -105,7 +105,7 @@ public:
private: private:
FileLoader *fileLoader_; FileLoader *fileLoader_;
std::mutex mutex_; static std::mutex mutex_;
u32 lbaSize; u32 lbaSize;
u32 psarOffset; u32 psarOffset;