rpa::spawn< ThreadTree, Ftor > Class Template Reference

#include <synchro.h>

Inheritance diagram for rpa::spawn< ThreadTree, Ftor >:

rpa::present< ThreadTree, Ftor > rpa::future< Ftor, Thr > List of all members.

Public Types

typedef Ftor::result_type result_type

Public Member Functions

 spawn (const present_type &presTyp)
 The sub-thread is started by the constructor of the future.
const result_typeresult (void)

Private Types

typedef present< ThreadTree,
Ftor > 
present_type
typedef future< typename present<
ThreadTree, Ftor >::functor_type,
typename ThreadTree::head_thread_type > 
future_type
 We must store an extra reference - maybe we could get rid of it.

template<class ThreadTree, class Ftor>
class rpa::spawn< ThreadTree, Ftor >


Member Typedef Documentation

template<class ThreadTree, class Ftor>
typedef future< typename present< ThreadTree, Ftor >::functor_type, typename ThreadTree::head_thread_type > rpa::spawn< ThreadTree, Ftor >::future_type [private]

We must store an extra reference - maybe we could get rid of it.

Reimplemented from rpa::present< ThreadTree, Ftor >.

template<class ThreadTree, class Ftor>
typedef present< ThreadTree, Ftor > rpa::spawn< ThreadTree, Ftor >::present_type [private]

template<class ThreadTree, class Ftor>
typedef Ftor::result_type rpa::spawn< ThreadTree, Ftor >::result_type

Reimplemented from rpa::future< Ftor, Thr >.


Constructor & Destructor Documentation

template<class ThreadTree, class Ftor>
rpa::spawn< ThreadTree, Ftor >::spawn ( const present_type presTyp  )  [inline]

The sub-thread is started by the constructor of the future.


Member Function Documentation

template<class ThreadTree, class Ftor>
const result_type& rpa::spawn< ThreadTree, Ftor >::result ( void   )  [inline]

All the variables that the 'future' points to are stored in 'spawn'. Which should REALLY inhibit 'this->result()' which is invalid when this thread is running.


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