SpatialOps
SpatialOps::ThreadPool Class Reference

Wrapper for a priority thread pool. More...

#include <ThreadPool.h>

Inheritance diagram for SpatialOps::ThreadPool:
Collaboration diagram for SpatialOps::ThreadPool:

Static Public Member Functions

static ThreadPoolself ()
 obtain the singleton instance of ThreadPool
 
static int resize_pool (const int threadCount)
 set the number of active worker threads in the pool. More...
 
static int get_pool_size ()
 
static int set_pool_capacity (const int threadCount)
 set the maximum number of worker threads in the pool. More...
 
static int get_pool_capacity ()
 

Detailed Description

Wrapper for a priority thread pool.

Definition at line 39 of file ThreadPool.h.

Member Function Documentation

◆ get_pool_capacity()

int SpatialOps::ThreadPool::get_pool_capacity ( )
static
Returns
the maximum number of threads in the pool

Definition at line 167 of file ThreadPool.cpp.

◆ get_pool_size()

int SpatialOps::ThreadPool::get_pool_size ( )
static
Returns
the number of active worker threads in the pool

Definition at line 160 of file ThreadPool.cpp.

◆ resize_pool()

int SpatialOps::ThreadPool::resize_pool ( const int  threadCount)
static

set the number of active worker threads in the pool.

Parameters
threadCountthe number of active threads in the pool
Returns
the number of threads in the pool

Definition at line 157 of file ThreadPool.cpp.

◆ set_pool_capacity()

int SpatialOps::ThreadPool::set_pool_capacity ( const int  threadCount)
static

set the maximum number of worker threads in the pool.

Parameters
threadCountthe maximum number of threads in the pool
Returns
the maximum number of threads in the pool

Definition at line 164 of file ThreadPool.cpp.


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