rpa::thread_tree_core Class Reference

The non-templatized part of thread_tree. More...

#include <synchro.h>

Inheritance diagram for rpa::thread_tree_core:

rpa::thread_tree_base< ThrIter > rpa::thread_tree_base< thread_pool< ThrPooled > > rpa::thread_tree_base< ThrSub[ThrNb] > rpa::thread_tree< ThrIter, ThrMain > rpa::thread_tree< ThrIter, ThrMain * > rpa::thread_tree< ThrIter, void > List of all members.

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.

Detailed Description

The non-templatized part of thread_tree.

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.


Constructor & Destructor Documentation

rpa::thread_tree_core::thread_tree_core ( thr_nb_t  aNb  )  [inline]

At initialisation, the maximum number may be too big.


Member Function Documentation

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]


Member Data Documentation

thr_nb_t rpa::thread_tree_core::_subsNb [private]

The number of available threads. We may not use all of them.


The documentation for this class was generated from the following file:
Generated on Tue Sep 25 10:20:38 2007 for rpa by  doxygen 1.4.7