#include <synchro.h>
Inheritance diagram for rpa::present< ThreadTree, Ftor >:
Public Types | |
typedef ThreadTree::head_thread_type | head_thread_type |
typedef threadify_t< Ftor, ThreadTree > | trdfy_t |
typedef trdfy_t::functor_type | functor_type |
typedef future< functor_type, head_thread_type > | future_type |
Public Member Functions | |
present (ThreadTree aThrTree, Ftor *ftorPtr) | |
The sub-thread is started by the constructor of the future. | |
Public Attributes | |
head_thread_type * | _thrMain |
NOTE: Temporarily public only. | |
functor_type | _subFtor |
Friends | |
class | spawn< ThreadTree, Ftor > |
One cannot do anything with this structure alone, it has to be used with 'spawn'. The point of 'present' is to wrap a functor and a thread tree, if the main thread is not void.
typedef trdfy_t::functor_type rpa::present< ThreadTree, Ftor >::functor_type |
typedef future< functor_type, head_thread_type > rpa::present< ThreadTree, Ftor >::future_type |
Reimplemented in rpa::spawn< ThreadTree, Ftor >.
typedef ThreadTree::head_thread_type rpa::present< ThreadTree, Ftor >::head_thread_type |
typedef threadify_t< Ftor, ThreadTree > rpa::present< ThreadTree, Ftor >::trdfy_t |
rpa::present< ThreadTree, Ftor >::present | ( | ThreadTree | aThrTree, | |
Ftor * | ftorPtr | |||
) | [inline] |
The sub-thread is started by the constructor of the future.
This constructor is used by algorithms, when their operator() receives a thread tree whose head thread is not void.
friend class spawn< ThreadTree, Ftor > [friend] |
functor_type rpa::present< ThreadTree, Ftor >::_subFtor |
head_thread_type* rpa::present< ThreadTree, Ftor >::_thrMain |
NOTE: Temporarily public only.