Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cJobThreadSet< T > Class Template Reference

#include <cJobThreadSet.h>

Public Member Functions

 cJobThreadSet (int iMinThreads=0, int iMaxThreads=32) noexcept
 
ITERATE_t get_RunningJobQty () const noexcept
 
ITERATE_t get_WaitingJobQty () const noexcept
 

Protected Attributes

const int m_iMinThreads
 min Threads i should keep in a pool ready to go. TODO More...
 
const int m_iMaxThreads
 max total Threads I'm allowed to use for this set. More...
 
cArrayRef< T > m_aRunningThreads
 Active Threads currently running/sleeping on Jobs/scripts. Idle threads get returned back to the shared cJobThreadPool. More...
 
cJobArray m_WaitingJobs
 cJobBase to schedule some TIME later. (not yet occupying a Thread.) More...
 

Detailed Description

template<class T>
class GrayLib::cJobThreadSet< T >

A pool of threads that may be the base for cJobThreadMgr or cJobFiberMgr Get my free threads from cJobThreadPool

Constructor & Destructor Documentation

◆ cJobThreadSet()

template<class T >
GrayLib::cJobThreadSet< T >::cJobThreadSet ( int  iMinThreads = 0,
int  iMaxThreads = 32 
)
inlinenoexcept

Member Function Documentation

◆ get_RunningJobQty()

template<class T >
ITERATE_t GrayLib::cJobThreadSet< T >::get_RunningJobQty ( ) const
inlinenoexcept

◆ get_WaitingJobQty()

template<class T >
ITERATE_t GrayLib::cJobThreadSet< T >::get_WaitingJobQty ( ) const
inlinenoexcept

Member Data Documentation

◆ m_aRunningThreads

template<class T >
cArrayRef<T> GrayLib::cJobThreadSet< T >::m_aRunningThreads
protected

Active Threads currently running/sleeping on Jobs/scripts. Idle threads get returned back to the shared cJobThreadPool.

◆ m_iMaxThreads

template<class T >
const int GrayLib::cJobThreadSet< T >::m_iMaxThreads
protected

max total Threads I'm allowed to use for this set.

◆ m_iMinThreads

template<class T >
const int GrayLib::cJobThreadSet< T >::m_iMinThreads
protected

min Threads i should keep in a pool ready to go. TODO

◆ m_WaitingJobs

template<class T >
cJobArray GrayLib::cJobThreadSet< T >::m_WaitingJobs
protected

cJobBase to schedule some TIME later. (not yet occupying a Thread.)


The documentation for this class was generated from the following file: