cesium-native 0.43.0
Loading...
Searching...
No Matches
CesiumAsync::ThreadPool Class Reference

A thread pool created by AsyncSystem::createThreadPool. More...

#include <CesiumAsync/ThreadPool.h>

Public Member Functions

 ThreadPool (int32_t numberOfThreads)
 Creates a new thread pool with the given number of threads.
 

Friends

template<typename T >
class Future
 
template<typename T >
class SharedFuture
 
class AsyncSystem
 

Detailed Description

A thread pool created by AsyncSystem::createThreadPool.

This object has no public methods, but can be used with AsyncSystem::runInThreadPool and Future::thenInThreadPool.

Definition at line 18 of file ThreadPool.h.

Constructor & Destructor Documentation

◆ ThreadPool()

CesiumAsync::ThreadPool::ThreadPool ( int32_t numberOfThreads)

Creates a new thread pool with the given number of threads.

Parameters
numberOfThreadsThe number of threads to create in this ThreadPool.

Friends And Related Symbol Documentation

◆ AsyncSystem

friend class AsyncSystem
friend

Definition at line 53 of file ThreadPool.h.

◆ Future

template<typename T >
friend class Future
friend

Definition at line 51 of file ThreadPool.h.

◆ SharedFuture

template<typename T >
friend class SharedFuture
friend

Definition at line 52 of file ThreadPool.h.


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