Files
starruler-linux/source/game/util/threaded_loader.h
T
2018-07-17 14:15:37 +02:00

16 lines
375 B
C++

#pragma once
#include <string>
#include <functional>
namespace Loading {
void prepare(unsigned threads, std::function<void(void)> threadPrep, std::function<void(void)> threadExit);
void finalize();
void finish();
bool finished();
void addTask(const std::string& name, const char* depends, std::function<void(void)> execute, int threadRestriction = 0);
void process();
};