#include "thread/JobSystemThreadPool.h"#include "common/Exception.h"#include "thread/ThreadPool.h"#include <algorithm>#include <condition_variable>#include <cstddef>#include <deque>#include <mutex>#include <new>#include <string>#include <thread>#include <utility>#include <vector>类 | |
| struct | eve::thread::JobSystemThreadPool::State |
命名空间 | |
| namespace | eve |
| Build metadata (engine git commit, build time, third-party version). | |
| namespace | eve::thread |
变量说明
◆ body
| JobFunc body |
在文件 JobSystemThreadPool.cpp 第 159 行定义.
◆ children
| std::vector<JobImpl *> children |
在文件 JobSystemThreadPool.cpp 第 222 行定义.
◆ completionDone
| bool completionDone = false |
在文件 JobSystemThreadPool.cpp 第 170 行定义.
◆ depCount
| int depCount = 0 |
在文件 JobSystemThreadPool.cpp 第 161 行定义.
◆ dependents
| std::vector<JobImpl *> dependents |
在文件 JobSystemThreadPool.cpp 第 162 行定义.
◆ destroy
| void(* destroy) (void *) | ( | void * | ) |
在文件 JobSystemThreadPool.cpp 第 91 行定义.
被这些函数引用 eve::procgen::GtsTerrainLodRuntime::clear(), eve::procgen_physics::GtsTerrainColliderRuntime::clear(), eve::script::detail::makeOwnedSquirrelInstanceRaw(), eve::procgen::GtsTerrainLodRuntime::replace(), eve::procgen_physics::GtsTerrainColliderRuntime::replace(), eve::procgen_physics::GtsTerrainColliderRuntime::~GtsTerrainColliderRuntime(), eve::procgen::GtsTerrainLodRuntime::~GtsTerrainLodRuntime(), eve::physics::Mechanism2D::~Mechanism2D() , 以及 eve::physics::Mechanism3D::~Mechanism3D().
◆ enqueued
| bool enqueued = false |
在文件 JobSystemThreadPool.cpp 第 166 行定义.
◆ error
| std::string error |
在文件 JobSystemThreadPool.cpp 第 171 行定义.
◆ onComplete
| JobFunc onComplete |
在文件 JobSystemThreadPool.cpp 第 160 行定义.
被这些函数引用 eve::thread::JobSystemThreadPool::State::createJobLocked().
◆ ownedChildren
| std::vector<JobImpl *> ownedChildren |
在文件 JobSystemThreadPool.cpp 第 163 行定义.
◆ ptr
| void* ptr |
在文件 JobSystemThreadPool.cpp 第 90 行定义.
被这些函数引用 eve::thread::JobSystemThreadPool::createFrameTaskGroup(), eve::thread::JobSystemThreadPool::State::createJobLocked(), eve::gpgpu::VulkanGpuBuffer::downloadBytes(), eve::sound::Sound::newDecoder(), eve::font::Font::newFontData() , 以及 eve::gpgpu::VulkanGpuBuffer::uploadBytes().
◆ scheduled
| bool scheduled = false |
在文件 JobSystemThreadPool.cpp 第 165 行定义.
被这些函数引用 eve::procgen::RuntimeGeneration::trimToResidentPoints().
◆ scope
| JobScope scope |
在文件 JobSystemThreadPool.cpp 第 158 行定义.
被这些函数引用 eve::rpg::StoryEventSession::advance(), eve::Runtime::arrayAppend(), eve::Runtime::arrayGet(), eve::Runtime::arrayRemove(), eve::Runtime::arraySet(), eve::Runtime::arraySize(), eve::card::CardPlayConditionContext::authority(), eve::dialogue::StateEvaluationContext::authority(), eve::emergence::FactStore::authority(), eve::rpg::SkillConditionContext::authority(), eve::decision::Condition::authorityCheck(), eve::rpg::StoryEventSession::begin(), eve::rpg::RpgStorySession::begin(), eve::authority::Store::can(), eve::Runtime::classNameOf(), eve::rpg::GameState::clearSelfString(), eve::dialogue::Dialogue::clearVar(), eve::dialogue::Dialogue::clearVars(), eve::Runtime::compileFile(), eve::Runtime::compileSource(), eve::rpg::WorldState::consumeObject(), eve::Runtime::createInstance(), eve::thread::JobSystemThreadPool::State::createJobLocked(), eve::editor::PluginPermissionTarget::decision(), eve::authority::Store::deny(), eve::procgen::deriveSeed(), eve::procgen::Procgen::deriveSeed(), eve::Runtime::execute(), eve::authority::Store::explain(), eve::ModuleManager::expose_pending(), eve::rpg::GameState::getSelfString(), eve::rpg::GameState::getSelfVariable(), eve::dialogue::Dialogue::getVarBool(), eve::dialogue::Dialogue::getVarFloat(), eve::dialogue::Dialogue::getVarInt(), eve::dialogue::Dialogue::getVarString(), eve::dialogue::Dialogue::getVarType(), eve::dialogue::Dialogue::getVarValue(), eve::authority::Store::grant(), eve::rpg::GameState::hasSelfString(), eve::rpg::GameState::hasSelfVariable(), eve::dialogue::Dialogue::hasVar(), eve::Runtime::initialize(), eve::rpg::WorldState::isObjectConsumed(), eve::rpg::RpgStorySession::Impl::persistProgress(), eve::settlement::projectEffectRules(), eve::authority::Store::query(), eve::authority::Store::queryScope(), eve::Runtime::readObjectProperty(), eve::Runtime::readProperty(), eve::Runtime::reflectClass(), eve::Runtime::reflectInstance(), eve::rpg::WorldState::resetObject(), eve::rpg::GameState::restoreSnapshotJson(), eve::tensor::OnnxModel::runGpu(), eve::Runtime::scanClasses(), eve::procgen::ProcgenContext::seedFor(), eve::emergence::FactStore::setAuthority(), eve::emergence::RuleEngine::setAuthority(), eve::rpg::GameState::setSelfString(), eve::rpg::GameState::setSelfVariable(), eve::dialogue::Dialogue::setVar(), eve::dialogue::Dialogue::setVarValue(), eve::rpg::GameState::snapshotJson(), eve::Runtime::tableGet(), eve::Runtime::tableKeys(), eve::Runtime::tableRemove(), eve::Runtime::tableSet(), eve::Runtime::unload() , 以及 eve::Runtime::writeProperty().
◆ state
| JobSystemThreadPool::State* state |
在文件 JobSystemThreadPool.cpp 第 157 行定义.
◆ status
| JobStatus status = JobStatus::Pending |
在文件 JobSystemThreadPool.cpp 第 164 行定义.