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