mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-27 15:24:05 +00:00
use qmutex instead of mutex(qmutexrecursive)
This commit is contained in:
parent
6d5ff66008
commit
7a43cc366e
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue