paludis  Version 2.6.0
Public Member Functions | List of all members
paludis::ThreadPool Class Reference

#include <thread_pool.hh>

Public Member Functions

void create_thread (const std::function< void() noexcept > &)
unsigned number_of_threads () const

Basic operations

 ThreadPool ()
 ~ThreadPool ()

Detailed Description

A thread pool holds a number of related threads.


Member Function Documentation

void paludis::ThreadPool::create_thread ( const std::function< void() noexcept > &  )

Create a new thread in our pool.

unsigned paludis::ThreadPool::number_of_threads ( ) const

How many threads does our pool contain?

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