mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
VolumeVerifier: Multithreading
This commit is contained in:
@ -4,7 +4,9 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <future>
|
||||
#include <map>
|
||||
#include <mutex>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@ -98,6 +100,8 @@ private:
|
||||
u64 GetBiggestUsedOffset(const FileInfo& file_info) const;
|
||||
void CheckMisc();
|
||||
void SetUpHashing();
|
||||
void WaitForAsyncOperations() const;
|
||||
bool ReadChunkAndWaitForAsyncOperations(u64 bytes_to_read);
|
||||
|
||||
void AddProblem(Severity severity, std::string text);
|
||||
|
||||
@ -113,6 +117,14 @@ private:
|
||||
mbedtls_md5_context m_md5_context;
|
||||
mbedtls_sha1_context m_sha1_context;
|
||||
|
||||
std::vector<u8> m_data;
|
||||
std::mutex m_volume_mutex;
|
||||
std::future<void> m_crc32_future;
|
||||
std::future<void> m_md5_future;
|
||||
std::future<void> m_sha1_future;
|
||||
std::future<void> m_content_future;
|
||||
std::future<void> m_block_future;
|
||||
|
||||
DiscScrubber m_scrubber;
|
||||
IOS::ES::TicketReader m_ticket;
|
||||
std::vector<u64> m_content_offsets;
|
||||
|
Reference in New Issue
Block a user