IThreadTaskManager

C++
struct IThreadTaskManager {
};
File

IThreadTask.h

Description

Task manager.

IThreadTaskManager::~IThreadTaskManager Destructor
C++
virtual ~IThreadTaskManager();
IThreadTaskManager::CreateThreadsPool Method
C++
virtual ThreadPoolHandle CreateThreadsPool(const ThreadPoolDesc& desc) = 0;
Description

Create a pool of threads

IThreadTaskManager::DestroyThreadsPool Method
C++
virtual const bool DestroyThreadsPool(const ThreadPoolHandle& handle) = 0;
IThreadTaskManager::GetThreadByName Method
C++
virtual threadID GetThreadByName(const char* sThreadName) = 0;
Description

Return thread handle by thread name

IThreadTaskManager::GetThreadName Method
C++
virtual const char* GetThreadName(threadID dwThreadId) = 0;
IThreadTaskManager::GetThreadsPoolDesc Method
C++
virtual const bool GetThreadsPoolDesc(const ThreadPoolHandle handle, ThreadPoolDesc* pDesc) const = 0;
IThreadTaskManager::MarkThisThreadForDebugging Method
C++
virtual void MarkThisThreadForDebugging(const char * name, bool bDump) = 0;
Description

if bMark=true the calling thread will dump its stack during crashes

IThreadTaskManager::RegisterTask Method
C++
virtual void RegisterTask(IThreadTask * pTask, const SThreadTaskParams & options) = 0;
Description

Register new task to the manager.

IThreadTaskManager::SetMaxThreadCount Method
C++
virtual void SetMaxThreadCount(int nMaxThreads) = 0;
Description

Limit number of threads to this amount.

IThreadTaskManager::SetThreadName Method
C++
virtual void SetThreadName(threadID dwThreadId, const char * sThreadName) = 0;
IThreadTaskManager::SetThreadsPoolAffinity Method
C++
virtual const bool SetThreadsPoolAffinity(const ThreadPoolHandle handle, const ThreadPoolAffinityMask AffinityMask) = 0;
IThreadTaskManager::UnregisterTask Method
C++
virtual void UnregisterTask(IThreadTask * pTask) = 0;