concurrency::Scheduler class

Public static variables

static const auto MainThreadId
the MainThreadId. Useful to check who is running the job.

Public static functions

static auto Instance() -> Scheduler&
static auto ConcurrencyLevel() -> auto

Public functions

auto RunningWorkersQuantity() -> size_t

Function documentation

static Scheduler& concurrency::Scheduler::Instance()

Returns Singleton instance of the scheduler

static auto concurrency::Scheduler::ConcurrencyLevel()

Returns the number of concurrent hardware threads available. usually is the number of cpucores*2