Public Member Functions | |
thr_arr (size_t nbThrs) | |
This allocates an internal array of threads. | |
~thr_arr () | |
This deletes the internal array of threads. | |
Private Member Functions | |
thr_arr () | |
thr_arr (const thr_arr &) | |
Private Attributes | |
size_t | _nb |
This can be only a positive integer. | |
SubThr * | _thrs |
Friends | |
class | thread_array |
Classes | |
struct | exception_mem |
Thrown if the threads could not be allocated. More... |
This way, all iterators points to the same thread pool. SHOULD BE REWRITTEN BECAUSE WE NEED THREE ALLOCS ALTHOUGH JUST ONE IS ENOUGH. We just need to be able to 'new' this : struct { size_t nb; SubThr thrs[]; };
rpa::thread_array< SubThr >::thr_arr::thr_arr | ( | ) | [private] |
rpa::thread_array< SubThr >::thr_arr::thr_arr | ( | const thr_arr & | ) | [private] |
rpa::thread_array< SubThr >::thr_arr::thr_arr | ( | size_t | nbThrs | ) | [inline] |
This allocates an internal array of threads.
rpa::thread_array< SubThr >::thr_arr::~thr_arr | ( | ) | [inline] |
This deletes the internal array of threads.
Their destructors waits until they terminate, but they should never be still running.
friend class thread_array [friend] |
size_t rpa::thread_array< SubThr >::thr_arr::_nb [private] |
This can be only a positive integer.
SubThr* rpa::thread_array< SubThr >::thr_arr::_thrs [private] |