Diligent Engine
Loading...
Searching...
No Matches
ThreadPool.hpp File Reference
#include "ThreadPool.h"
#include <atomic>
#include <cmath>
#include <condition_variable>
#include <functional>
#include <mutex>
#include "../../Platforms/Basic/interface/DebugUtilities.hpp"
#include "ObjectBase.hpp"
#include "RefCntAutoPtr.hpp"

Classes

struct  Diligent::ThreadPoolCreateInfo
 Thread pool create information. More...
class  Diligent::AsyncTaskBase
 Base implementation of the IAsyncTask interface. More...

Namespaces

namespace  Diligent
 Graphics engine namespace.

Functions

Uint64 Diligent::PinWorkerThread (Uint32 ThreadId, Uint64 AllowedCoresMask)
template<typename HandlerType>
RefCntAutoPtr< IAsyncTaskDiligent::CreateAsyncWorkTask (HandlerType Handler, float fPriority=0)
 The handler function must return the task status, see Diligent::IAsyncTask::Run() method.
template<typename HanlderType>
RefCntAutoPtr< IAsyncTaskDiligent::EnqueueAsyncWork (IThreadPool *pThreadPool, IAsyncTask **ppPrerequisites, Uint32 NumPrerequisites, HanlderType Handler, float fPriority=0)

Detailed Description

Thread pool implementation.