VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Main/Forms/BenchmarkDialog.h
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-01-04 23:51:43 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-01-04 23:53:35 +0100
commit6a254778e2bcfe7df0b40bf8a0db37159a706315 (patch)
tree95dd89deaf84c8b0c8fd6d9ae651bbe4afc3c7cd /src/Main/Forms/BenchmarkDialog.h
parent41607d126a0a045222a5fc2fac5c9e77b40099f7 (diff)
downloadVeraCrypt-6a254778e2bcfe7df0b40bf8a0db37159a706315.tar.gz
VeraCrypt-6a254778e2bcfe7df0b40bf8a0db37159a706315.zip
Linux/MacOSX: Add wait dialog to the benchmark computation. Correct handling of wait dialog call when changing password and creating volumes.
Diffstat (limited to 'src/Main/Forms/BenchmarkDialog.h')
-rw-r--r--src/Main/Forms/BenchmarkDialog.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Main/Forms/BenchmarkDialog.h b/src/Main/Forms/BenchmarkDialog.h
index b127295f..a9b42a58 100644
--- a/src/Main/Forms/BenchmarkDialog.h
+++ b/src/Main/Forms/BenchmarkDialog.h
@@ -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); }
+ };
};
}