Orxonox: orxonox::ThreadPool Class Reference

# orxonox::ThreadPool Class Reference

`#include <src/core/ThreadPool.h>`

List of all members.

## Public Member Functions

void | addThreads (unsigned int nr)
bool | passFunction (Executor *executor, bool addThread=false)
unsigned int | removeThreads (unsigned int nr)
unsigned int | setNrOfThreads (unsigned int nr)
void | synchronise ()
| ThreadPool ()
virtual | ~ThreadPool ()

## Private Attributes

std::vector< Thread * > | threadPool_

## Constructor & Destructor Documentation

orxonox::ThreadPool::ThreadPool | ( |  | ) |

orxonox::ThreadPool::~ThreadPool | ( |  | ) | `[virtual]`

References setNrOfThreads().

## Member Function Documentation

void orxonox::ThreadPool::addThreads | ( | unsigned int | nr | ) |

References threadPool_.

Referenced by passFunction(), and setNrOfThreads().

bool orxonox::ThreadPool::passFunction | ( | Executor * | executor,
|  | bool | addThread = `false` |
| ) |  |  |

References addThreads(), and threadPool_.

unsigned int orxonox::ThreadPool::removeThreads | ( | unsigned int | nr | ) |

References threadPool_.

Referenced by setNrOfThreads().

unsigned int orxonox::ThreadPool::setNrOfThreads | ( | unsigned int | nr | ) |

References addThreads(), removeThreads(), and threadPool_.

Referenced by ~ThreadPool().

void orxonox::ThreadPool::synchronise | ( |  | ) |

References threadPool_.

## Member Data Documentation

std::vector<Thread*> orxonox::ThreadPool::threadPool_`[private]`

Referenced by addThreads(), passFunction(), removeThreads(), setNrOfThreads(), and synchronise().

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

- src/core/ThreadPool.h
- src/core/ThreadPool.cc