mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-25 11:46:27 +00:00
VolumeVerifier: Multithreading
This commit is contained in:
parent
f754a1a548
commit
34fb608dd6
2 changed files with 113 additions and 39 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue