![]() |
Pyrogenesis HEAD
Pyrogenesis, a RTS Engine
|
#include "precompiled.h"#include "TaskManager.h"#include "lib/debug.h"#include "maths/MathUtil.h"#include "ps/CLogger.h"#include "ps/ConfigDB.h"#include "ps/Threading.h"#include "ps/ThreadUtil.h"#include "ps/Profiler2.h"#include <condition_variable>#include <deque>#include <functional>#include <memory>#include <mutex>#include <thread>
Classes | |
| class | Threading::Thread |
| Light wrapper around std::thread. More... | |
| class | Threading::WorkerThread |
| Worker thread: process the taskManager queues until killed. More... | |
| class | Threading::TaskManager::Impl |
| PImpl-ed implementation of the Task manager. More... | |
Namespaces | |
| namespace | Threading |
| Light-weight threading utilities. | |
| namespace | Threading::anonymous_namespace{TaskManager.cpp} |
Typedefs | |
| using | Threading::QueueItem = std::function< void()> |
Functions | |
| size_t | Threading::anonymous_namespace{TaskManager.cpp}::GetDefaultNumberOfWorkers () |
Variables | |
| constexpr size_t | Threading::anonymous_namespace{TaskManager.cpp}::MIN_WORKERS = 3 |
| Minimum number of TaskManager workers. More... | |
| constexpr size_t | Threading::anonymous_namespace{TaskManager.cpp}::MAX_WORKERS = 32 |
| Maximum number of TaskManager workers. More... | |
| std::unique_ptr< TaskManager > | Threading::g_TaskManager |