STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::detail::one_sided_wait_td_notifier< T > Class Template Reference

Event handler which receives signals from inter-paragraph data flow and termination detection and waits until both are received before calling a notifier which informs the parent paragraph that this one-sided initialized child paragraph has completed and provides the corresponding dataflow. More...

Public Member Functions

 one_sided_wait_td_notifier (notifier_type notifier)
 
void set_value (T const &value, bool b_stealable)
 
void notify_td (void)
 

Detailed Description

template<typename T>
class stapl::detail::one_sided_wait_td_notifier< T >

Event handler which receives signals from inter-paragraph data flow and termination detection and waits until both are received before calling a notifier which informs the parent paragraph that this one-sided initialized child paragraph has completed and provides the corresponding dataflow.

Guards against possible race condition where data flow is triggered prior to the success of termination detection, allowing the parent pg to be notified, succeed in its termination detection, and be deleted prior to the child. The gang_executor does not allow child deletion after parents (i.e., tear down must be bottom up).


The documentation for this class was generated from the following file: