OpenTTD
|
Functions related to modal progress. More...
#include "thread/thread.h"
Go to the source code of this file.
Functions | |
static bool | HasModalProgress () |
Check if we are currently in a modal progress state. More... | |
bool | IsFirstModalProgressLoop () |
Check whether this is the first modal progress loop. More... | |
void | SetModalProgress (bool state) |
Set the modal progress state. More... | |
Variables | |
static const uint | MODAL_PROGRESS_REDRAW_TIMEOUT = 200 |
Timeout between redraws. | |
class ThreadMutex * | _modal_progress_work_mutex |
Rights for the performing work. More... | |
class ThreadMutex * | _modal_progress_paint_mutex |
Rights for the painting. More... | |
Functions related to modal progress.
Definition in file progress.h.
|
inlinestatic |
Check if we are currently in a modal progress state.
Definition at line 23 of file progress.h.
References _in_modal_progress, _modal_progress_paint_mutex, _modal_progress_work_mutex, IsFirstModalProgressLoop(), and SetModalProgress().
Referenced by GenerateWorld(), MayBeShown(), and StateGameLoop().
bool IsFirstModalProgressLoop | ( | ) |
Check whether this is the first modal progress loop.
Definition at line 41 of file progress.cpp.
Referenced by HasModalProgress().
void SetModalProgress | ( | bool | state | ) |
Set the modal progress state.
state | The new state; are we modal or not? |
Definition at line 30 of file progress.cpp.
References _in_modal_progress.
Referenced by DoScanNewGRFFiles(), GenerateWorld(), HasModalProgress(), and ScanNewGRFFiles().
class ThreadMutex* _modal_progress_paint_mutex |
Rights for the painting.
Definition at line 23 of file progress.cpp.
Referenced by GRFFileScanner::AddFile(), DoScanNewGRFFiles(), HasModalProgress(), ScanNewGRFFiles(), and WaitTillGeneratedWorld().
class ThreadMutex* _modal_progress_work_mutex |
Rights for the performing work.
Definition at line 21 of file progress.cpp.
Referenced by GRFFileScanner::AddFile(), DoScanNewGRFFiles(), HasModalProgress(), ScanNewGRFFiles(), and WaitTillGeneratedWorld().