DCSModulesAPI  1.0.0
DCS sub project containing all the control modules as libraries.
Classes | Functions
DCS::Threading Namespace Reference

Handles threading and asynchronicity. More...

Classes

struct  TPool
 

Functions

const DCS_API u16 GetMaxHardwareConcurrency ()
 Get current machine maximum hardware concurrency (Number of physical threads supported by the current implementation).
 
DCS_INTERNAL_TEST TPoolCreatePersistentPool (u16 size, std::vector< std::function< void(std::mutex *, std::condition_variable *, std::array< std::atomic_int, 16 > *)>> workers)
 
DCS_INTERNAL_TEST void JoinPool (TPool *pool)
 
DCS_INTERNAL_TEST u64 GetPoolWorkCount (TPool *pool)
 
DCS_INTERNAL_TEST void DestroyPool (TPool *pool)
 

Detailed Description

Handles threading and asynchronicity.