#include <synchro.h>
Inheritance diagram for rpa::thread_tree_core:
Public Member Functions | |
void | check (void) const |
thr_nb_t | size (void) const |
void | resize (thr_nb_t aNb) |
The number of threads actually used by an algorithm run. | |
thread_tree_core (thr_nb_t aNb) | |
At initialisation, the maximum number may be too big. | |
Private Attributes | |
thr_nb_t | _subsNb |
The number of available threads. We may not use all of them. |
Thread trees can be copied and assigned, because the threads are not copied, only their iterators. Therefore, default ctor and assignment operator are not forbidden.
rpa::thread_tree_core::thread_tree_core | ( | thr_nb_t | aNb | ) | [inline] |
At initialisation, the maximum number may be too big.
void rpa::thread_tree_core::check | ( | void | ) | const [inline] |
void rpa::thread_tree_core::resize | ( | thr_nb_t | aNb | ) | [inline] |
The number of threads actually used by an algorithm run.
This number is set by algorithms, when they did not use all the threads. They use the first ones only. We number of used threads may be zero if there are no elements to process.
thr_nb_t rpa::thread_tree_core::size | ( | void | ) | const [inline] |
thr_nb_t rpa::thread_tree_core::_subsNb [private] |
The number of available threads. We may not use all of them.