mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
world converter threading
This commit is contained in:
parent
ab110dcdf5
commit
cc58ea29bc
10 changed files with 122 additions and 63 deletions
|
|
@ -208,7 +208,7 @@ const ResPaths* AssetsLoader::getPaths() const {
|
|||
return paths;
|
||||
}
|
||||
|
||||
class LoaderWorker : public util::Worker<std::shared_ptr<aloader_entry>, assetload::postfunc> {
|
||||
class LoaderWorker : public util::Worker<aloader_entry, assetload::postfunc> {
|
||||
AssetsLoader* loader;
|
||||
public:
|
||||
LoaderWorker(AssetsLoader* loader) : loader(loader) {
|
||||
|
|
@ -222,7 +222,7 @@ public:
|
|||
|
||||
std::shared_ptr<Task> AssetsLoader::startTask(runnable onDone) {
|
||||
auto pool = std::make_shared<
|
||||
util::ThreadPool<std::shared_ptr<aloader_entry>, assetload::postfunc>
|
||||
util::ThreadPool<aloader_entry, assetload::postfunc>
|
||||
>(
|
||||
"assets-loader-pool",
|
||||
[=](){return std::make_shared<LoaderWorker>(this);},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue