STAPL API Reference          
Overview   Containers   Algorithms   Views   Skeletons   Run-Time System
Modules     Classes    
List of all members | Public Member Functions
stapl::tg_callback Class Reference

Callback to PARAGRAPH used by tasks to inform it of task completion, migration requests, etc.Tasks can be migrated to execute at locations outside where the associated PARAGRAPH is defined. This class generalizes task access to the PARAGRAPH to support such cases. More...

Public Member Functions

 tg_callback (paragraph_impl::task_graph *tg_ptr)
 
 tg_callback (rmi_handle::reference handle_ref, unsigned int lid, size_t task_id)
 
paragraph_impl::task_graphtg (void) const
 
bool valid (void) const
 
rmi_handle::reference handle (void) const
 
unsigned int get_location_id (void) const
 
size_t task_id (void) const
 

Detailed Description

Callback to PARAGRAPH used by tasks to inform it of task completion, migration requests, etc.

Tasks can be migrated to execute at locations outside where the associated PARAGRAPH is defined. This class generalizes task access to the PARAGRAPH to support such cases.

Note
Don't be fancy and use m_lid invalid comparison to save allocation of boolean m_b_valid. The comparison takes longer.

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