rpa::thread_array< SubThr >::thr_arr Class Reference

This structure stores the threads. It is accessed with a counted_ptr. More...

List of all members.

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...


Detailed Description

template<class SubThr>
class rpa::thread_array< SubThr >::thr_arr

This structure stores the threads. It is accessed with a counted_ptr.

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[]; };


Constructor & Destructor Documentation

template<class SubThr>
rpa::thread_array< SubThr >::thr_arr::thr_arr (  )  [private]

template<class SubThr>
rpa::thread_array< SubThr >::thr_arr::thr_arr ( const thr_arr  )  [private]

template<class SubThr>
rpa::thread_array< SubThr >::thr_arr::thr_arr ( size_t  nbThrs  )  [inline]

This allocates an internal array of threads.

template<class SubThr>
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.


Friends And Related Function Documentation

template<class SubThr>
friend class thread_array [friend]


Member Data Documentation

template<class SubThr>
size_t rpa::thread_array< SubThr >::thr_arr::_nb [private]

This can be only a positive integer.

template<class SubThr>
SubThr* rpa::thread_array< SubThr >::thr_arr::_thrs [private]


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