Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
Loader.h File Reference
#include "lib/debug.h"
#include "lib/status.h"
#include "lib/timer.h"
#include <coroutine>
#include <exception>
#include <functional>
#include <string>
#include <utility>
Include dependency graph for Loader.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PS::Loader::Task
 Coroutine which performs the actual work. More...
 
class  PS::Loader::Task::promise_type
 
class  PS::Loader::Task::promise_type::SuspendIf
 
struct  PS::Loader::ProgressiveLoadResult
 

Namespaces

namespace  PS
 
namespace  PS::Loader
 

Typedefs

using PS::Loader::LoadFunc = std::function< PS::Loader::Task()>
 

Functions

void PS::Loader::BeginRegistering ()
 
void PS::Loader::Register (LoadFunc func, std::wstring description, int estimatedDurationMs)
 
void PS::Loader::EndRegistering ()
 
void PS::Loader::Cancel ()
 
ProgressiveLoadResult PS::Loader::ProgressiveLoad (double time_budget)
 Process as many of the queued tasks as possible within timeBudget [s]. More...
 
Status PS::Loader::NonprogressiveLoad ()