#include <functional>
#include <wchar.h>
Go to the source code of this file.
|
using | LoadFunc = std::function< int(double)> |
|
◆ LDR_CHECK_TIMEOUT
#define LDR_CHECK_TIMEOUT |
( |
|
completed_jobs, |
|
|
|
total_jobs |
|
) |
| |
Value:
{\
size_t progress_percent = ((completed_jobs)*100 / (total_jobs));\
\
if(progress_percent == 0)\
progress_percent = 1;\
ENSURE(0 < progress_percent && progress_percent <= 100);\
return (int)progress_percent;\
}
double timer_Time()
Definition: timer.cpp:130
◆ LoadFunc
using LoadFunc = std::function<int(double)> |
◆ LDR_BeginRegistering()
void LDR_BeginRegistering |
( |
| ) |
|
◆ LDR_Cancel()
◆ LDR_EndRegistering()
void LDR_EndRegistering |
( |
| ) |
|
◆ LDR_NonprogressiveLoad()
Status LDR_NonprogressiveLoad |
( |
| ) |
|
◆ LDR_ProgressiveLoad()
Status LDR_ProgressiveLoad |
( |
double |
time_budget, |
|
|
wchar_t * |
next_description, |
|
|
size_t |
max_chars, |
|
|
int * |
progress_percent |
|
) |
| |
◆ LDR_Register()
void LDR_Register |
( |
LoadFunc |
func, |
|
|
const wchar_t * |
description, |
|
|
int |
estimated_duration_ms |
|
) |
| |