初始提交: UE5.3项目基础框架
This commit is contained in:
@ -0,0 +1,12 @@
|
||||
// Copyright 2020-2024 CesiumGS, Inc. and Contributors
|
||||
|
||||
#include "UnrealTaskProcessor.h"
|
||||
#include "Async/Async.h"
|
||||
#include "Misc/QueuedThreadPool.h"
|
||||
|
||||
void UnrealTaskProcessor::startTask(std::function<void()> f) {
|
||||
AsyncTask(ENamedThreads::Type::AnyBackgroundThreadNormalTask, [f]() {
|
||||
TRACE_CPUPROFILER_EVENT_SCOPE(Cesium::AsyncTask)
|
||||
f();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user