mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 19:08:26 -06:00
Linux/MacOSX: Add wait dialog to the benchmark computation. Correct handling of wait dialog call when changing password and creating volumes.
This commit is contained in:
@@ -36,7 +36,20 @@ namespace VeraCrypt
|
||||
uint64 MeanSpeed;
|
||||
};
|
||||
|
||||
void DoBenchmark (list<BenchmarkResult>& results, Buffer& buffer);
|
||||
void OnBenchmarkButtonClick (wxCommandEvent& event);
|
||||
|
||||
class BenchmarkThreadRoutine : public WaitThreadRoutine
|
||||
{
|
||||
public:
|
||||
BenchmarkDialog* m_pDlg;
|
||||
list<BenchmarkResult>& m_results;
|
||||
Buffer& m_buffer;
|
||||
BenchmarkThreadRoutine(BenchmarkDialog* pDlg, list<BenchmarkResult>& results, Buffer& buffer)
|
||||
: m_pDlg(pDlg), m_results(results), m_buffer(buffer) { }
|
||||
virtual ~BenchmarkThreadRoutine() { }
|
||||
virtual void ExecutionCode(void) { m_pDlg->DoBenchmark (m_results, m_buffer); }
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user