OpenTTD Source
1.11.0-beta2
|
static const uint MODAL_PROGRESS_REDRAW_TIMEOUT
Timeout between redraws.
std::mutex _modal_progress_work_mutex
Rights for the performing work.
bool IsFirstModalProgressLoop()
Check whether this is the first modal progress loop.
bool _use_threaded_modal_progress
Threading usable for modal progress?
bool _in_modal_progress
Are we in a modal progress or not?
static bool UseThreadedModelProgress()
Check if we can use a thread for modal progress.
void SetModalProgress(bool state)
Set the modal progress state.
static bool HasModalProgress()
Check if we are currently in a modal progress state.
std::mutex _modal_progress_paint_mutex
Rights for the painting.