mrdocs::ThreadPool

A pool of threads for executing work concurrently.

Synopsis

Declared in <mrdocs/Support/ThreadPool.hpp>

class ThreadPool;

Types

Member Functions

Name

Description

ThreadPool [constructor]

Constructor.

~ThreadPool [destructor]

Destructor.

async

Submit work to be executed.

forEach

Invoke a function object for each element of a range.

getThreadCount

Return the number of threads in the pool.

wait

Block until all work has completed.

Friends

Name

Description

mrdocs::TaskGroup

A subset of possible work in a thread pool.

Created with MrDocs