archive/{iso9660,zzip}: unlock the mutex during I/O

Similar to commit 31ab78ae8e
This commit is contained in:
Max Kellermann
2017-12-22 16:06:07 +01:00
parent 4b18460bc6
commit d094c168aa
3 changed files with 7 additions and 0 deletions

View File

@@ -182,6 +182,8 @@ Iso9660ArchiveFile::OpenStream(const char *pathname,
size_t
Iso9660InputStream::Read(void *ptr, size_t read_size)
{
const ScopeUnlock unlock(mutex);
int readed = 0;
int no_blocks, cur_block;
size_t left_bytes = statbuf->size - offset;