Update to 1.10.0-beta1

This commit is contained in:
dP
2019-10-31 22:24:28 +03:00
parent b84a475e14
commit 599ccf0c2b
1470 changed files with 354219 additions and 16795 deletions
+13 -3
View File
@@ -12,7 +12,7 @@
#ifndef PROGRESS_H
#define PROGRESS_H
#include "thread/thread.h"
#include <mutex>
static const uint MODAL_PROGRESS_REDRAW_TIMEOUT = 200; ///< Timeout between redraws
@@ -26,10 +26,20 @@ static inline bool HasModalProgress()
return _in_modal_progress;
}
/**
* Check if we can use a thread for modal progress.
* @return Threading usable?
*/
static inline bool UseThreadedModelProgress()
{
extern bool _use_threaded_modal_progress;
return _use_threaded_modal_progress;
}
bool IsFirstModalProgressLoop();
void SetModalProgress(bool state);
extern class ThreadMutex *_modal_progress_work_mutex;
extern class ThreadMutex *_modal_progress_paint_mutex;
extern std::mutex _modal_progress_work_mutex;
extern std::mutex _modal_progress_paint_mutex;
#endif /* PROGRESS_H */