Class to manage storing new threads.
More...
#include <thread_manager.hpp>
|
| template<typename... Ts> |
| void | emplace_back (Ts &&...ts) |
| |
| decltype(m_threads)::iterator | begin () |
| |
| decltype(m_threads)::iterator | end () |
| |
| decltype(m_threads)::const_iterator | begin () const |
| |
| decltype(m_threads)::const_iterator | end () const |
| |
Class to manage storing new threads.
!
| decltype(m_threads) ::iterator thread_manager::begin |
( |
| ) |
|
|
inline |
Returns the iterator to begin of the container.
- Returns
- iterator to the begin.
| decltype(m_threads) ::const_iterator thread_manager::begin |
( |
| ) |
const |
|
inline |
Returns the iterator to begin of the container.
- Returns
- const_iterator to the begin.
| static void thread_manager::decrement |
( |
| ) |
|
|
inlinestatic |
Manually decrements thread counter.
template<typename... Ts>
| void thread_manager::emplace_back |
( |
Ts &&... |
ts | ) |
|
|
inline |
Emplaces new thread by forwarding input values to my_thread constructor.
- Template Parameters
-
| Ts | types of input parameters. |
- Parameters
-
| ts | values of input parameters. |
| decltype(m_threads) ::iterator thread_manager::end |
( |
| ) |
|
|
inline |
Returns the iterator past the end of the container.
- Returns
- iterator past the end.
| decltype(m_threads) ::const_iterator thread_manager::end |
( |
| ) |
const |
|
inline |
Returns the iterator past the end of the container.
- Returns
- const_iterator past the end.
| static size_t thread_manager::get_value |
( |
| ) |
|
|
inlinestatic |
Gets total threads in the program. Does not count threads which are waiting to be joined.
- Returns
- total threads currently running in program.
| static void thread_manager::increment |
( |
| ) |
|
|
inlinestatic |
Manually increments thread counter.
The documentation for this class was generated from the following file: