use qmutex instead of mutex(qmutexrecursive)

This commit is contained in:
Xiao YiFang 2022-06-18 09:09:40 +08:00
parent 6d5ff66008
commit 7a43cc366e
2 changed files with 2 additions and 2 deletions

View file

@ -137,7 +137,7 @@ char * Reader::getBlock( uint32_t address, vector< char > & chunk )
// Read and decompress the chunk
{
// file.seek( offsets[ chunkIdx ] );
Mutex::Lock _( file.lock );
QMutexLocker _( &file.lock );
auto bytes = file.map( offsets[ chunkIdx ], 8 );
if( bytes == nullptr )
throw mapFailed();

View file

@ -45,7 +45,7 @@ class Class
void open( char const * filename, char const * mode ) ;
public:
Mutex lock;
QMutex lock;
Class( char const * filename, char const * mode ) ;