Don't require calling DoNativeBeforeUpdate() with locked CS

Acquire the lock in wxProgressDialog::DoNativeBeforeUpdate() itself
instead of relying on the caller to do it.

This is just a refactoring in preparation for further changes.
This commit is contained in:
Vadim Zeitlin
2017-10-28 19:31:30 +02:00
parent aac673391c
commit 046d3be215
2 changed files with 20 additions and 13 deletions

View File

@@ -54,8 +54,9 @@ public:
virtual WXWidget GetHandle() const wxOVERRIDE;
private:
// Performs common routines to Update() and Pulse(). Requires the
// shared object to have been entered.
// Common part of Update() and Pulse().
//
// Returns false if the user requested cancelling the dialog.
bool DoNativeBeforeUpdate(bool *skip);
// Updates the various timing informations for both determinate