| 
    Intel(R) Threading Building Blocks Doxygen Documentation
    version 4.2.3
    
   | 
 
Task type used to split the work of parallel_reduce. More...
#include <parallel_reduce.h>
Public Member Functions | |
| start_reduce (const Range &range, Body *body, Partitioner &partitioner) | |
| Constructor used for root task.  More... | |
| start_reduce (start_reduce &parent_, typename Partitioner::split_type &split_obj) | |
| Splitting constructor used to generate children.  More... | |
| start_reduce (start_reduce &parent_, const Range &r, depth_t d) | |
| Construct right child from the given range as response to the demand.  More... | |
| void | run_body (Range &r) | 
| Run body for range.  More... | |
| void | offer_work (typename Partitioner::split_type &split_obj) | 
| spawn right task, serves as callback for partitioner  More... | |
| void | offer_work (const Range &r, depth_t d=0) | 
| spawn right task, serves as callback for partitioner  More... | |
  Public Member Functions inherited from tbb::task | |
| virtual | ~task () | 
| Destructor.  More... | |
| internal::allocate_continuation_proxy & | allocate_continuation () | 
| Returns proxy for overloaded new that allocates a continuation task of *this.  More... | |
| internal::allocate_child_proxy & | allocate_child () | 
| Returns proxy for overloaded new that allocates a child task of *this.  More... | |
| void | recycle_as_continuation () | 
| Change this to be a continuation of its former self.  More... | |
| void | recycle_as_safe_continuation () | 
| Recommended to use, safe variant of recycle_as_continuation.  More... | |
| void | recycle_as_child_of (task &new_parent) | 
| Change this to be a child of new_parent.  More... | |
| void | recycle_to_reexecute () | 
| Schedule this for reexecution after current execute() returns.  More... | |
| void | set_ref_count (int count) | 
| Set reference count.  More... | |
| void | increment_ref_count () | 
| Atomically increment reference count.  More... | |
| int | add_ref_count (int count) | 
| Atomically adds to reference count and returns its new value.  More... | |
| int | decrement_ref_count () | 
| Atomically decrement reference count and returns its new value.  More... | |
| void | spawn_and_wait_for_all (task &child) | 
| Similar to spawn followed by wait_for_all, but more efficient.  More... | |
| void __TBB_EXPORTED_METHOD | spawn_and_wait_for_all (task_list &list) | 
| Similar to spawn followed by wait_for_all, but more efficient.  More... | |
| void | wait_for_all () | 
| Wait for reference count to become one, and set reference count to zero.  More... | |
| task * | parent () const | 
| task on whose behalf this task is working, or NULL if this is a root.  More... | |
| void | set_parent (task *p) | 
| sets parent task pointer to specified value  More... | |
| task_group_context * | context () | 
| This method is deprecated and will be removed in the future.  More... | |
| task_group_context * | group () | 
| Pointer to the task group descriptor.  More... | |
| bool | is_stolen_task () const | 
| True if task was stolen from the task pool of another thread.  More... | |
| bool | is_enqueued_task () const | 
| True if the task was enqueued.  More... | |
| state_type | state () const | 
| Current execution state.  More... | |
| int | ref_count () const | 
| The internal reference count.  More... | |
| bool __TBB_EXPORTED_METHOD | is_owned_by_current_thread () const | 
| Obsolete, and only retained for the sake of backward compatibility. Always returns true.  More... | |
| void | set_affinity (affinity_id id) | 
| Set affinity for this task.  More... | |
| affinity_id | affinity () const | 
| Current affinity of this task.  More... | |
| void __TBB_EXPORTED_METHOD | change_group (task_group_context &ctx) | 
| Moves this task from its current group into another one.  More... | |
| bool | cancel_group_execution () | 
| Initiates cancellation of all tasks in this cancellation group and its subordinate groups.  More... | |
| bool | is_cancelled () const | 
| Returns true if the context has received cancellation request.  More... | |
| __TBB_DEPRECATED void | set_group_priority (priority_t p) | 
| Changes priority of the task group this task belongs to.  More... | |
| __TBB_DEPRECATED priority_t | group_priority () const | 
| Retrieves current priority of the task group this task belongs to.  More... | |
Static Public Member Functions | |
| static void | run (const Range &range, Body &body, Partitioner &partitioner) | 
| static void | run (const Range &range, Body &body, Partitioner &partitioner, task_group_context &context) | 
  Static Public Member Functions inherited from tbb::task | |
| static internal::allocate_root_proxy | allocate_root () | 
| Returns proxy for overloaded new that allocates a root task.  More... | |
| static internal::allocate_root_with_context_proxy | allocate_root (task_group_context &ctx) | 
| Returns proxy for overloaded new that allocates a root task associated with user supplied context.  More... | |
| static void | spawn_root_and_wait (task &root) | 
| Spawn task allocated by allocate_root, wait for it to complete, and deallocate it.  More... | |
| static void | spawn_root_and_wait (task_list &root_list) | 
| Spawn root tasks on list and wait for all of them to finish.  More... | |
| static void | enqueue (task &t) | 
| Enqueue task for starvation-resistant execution.  More... | |
| static void | enqueue (task &t, priority_t p) | 
| Enqueue task for starvation-resistant execution on the specified priority level.  More... | |
| static void | enqueue (task &t, task_arena &arena, priority_t p=priority_t(0)) | 
| Enqueue task in task_arena.  More... | |
| static task &__TBB_EXPORTED_FUNC | self () | 
| The innermost task being executed or destroyed by the current thread at the moment.  More... | |
Private Types | |
| typedef finish_reduce< Body > | finish_type | 
Private Member Functions | |
| task * | execute () __TBB_override | 
| Should be overridden by derived classes.  More... | |
| void | note_affinity (affinity_id id) __TBB_override | 
| Update affinity info, if any.  More... | |
Private Attributes | |
| Body * | my_body | 
| Range | my_range | 
| Partitioner::task_partition_type | my_partition | 
| reduction_context | my_context | 
Friends | |
| template<typename Body_ > | |
| class | finish_reduce | 
Additional Inherited Members | |
  Public Types inherited from tbb::task | |
| enum | state_type {  executing, reexecute, ready, allocated, freed, recycle }  | 
| Enumeration of task states that the scheduler considers.  More... | |
| typedef internal::affinity_id | affinity_id | 
| An id as used for specifying affinity.  More... | |
  Protected Member Functions inherited from tbb::task | |
| task () | |
| Default constructor.  More... | |
Task type used to split the work of parallel_reduce.
Definition at line 85 of file parallel_reduce.h.
      
  | 
  private | 
Definition at line 86 of file parallel_reduce.h.
      
  | 
  inline | 
Constructor used for root task.
Definition at line 101 of file parallel_reduce.h.
      
  | 
  inline | 
Splitting constructor used to generate children.
parent_ becomes left child. Newly constructed object is right child.
Definition at line 110 of file parallel_reduce.h.
References tbb::interface9::internal::left_child, and tbb::interface9::internal::start_reduce< Range, Body, Partitioner >::my_context.
      
  | 
  inline | 
Construct right child from the given range as response to the demand.
parent_ remains left child. Newly constructed object is right child.
Definition at line 121 of file parallel_reduce.h.
References d, tbb::interface9::internal::left_child, and tbb::interface9::internal::start_reduce< Range, Body, Partitioner >::my_context.
      
  | 
  privatevirtual | 
Should be overridden by derived classes.
Implements tbb::task.
Definition at line 181 of file parallel_reduce.h.
References __TBB_ASSERT, tbb::interface9::internal::finish_reduce< Body >::has_right_zombie, tbb::internal::itt_load_word_with_acquire(), tbb::internal::itt_store_word_with_release(), tbb::interface9::internal::left_child, tbb::interface9::internal::finish_reduce< Body >::my_body, parent, tbb::interface9::internal::right_child, tbb::interface9::internal::root_task, and tbb::interface9::internal::finish_reduce< Body >::zombie_space.
      
  | 
  inlineprivatevirtual | 
Update affinity info, if any.
Reimplemented from tbb::task.
Definition at line 93 of file parallel_reduce.h.
      
  | 
  inline | 
spawn right task, serves as callback for partitioner
Definition at line 154 of file parallel_reduce.h.
References tbb::interface9::internal::allocate_sibling().
      
  | 
  inline | 
spawn right task, serves as callback for partitioner
Definition at line 162 of file parallel_reduce.h.
References tbb::interface9::internal::allocate_sibling(), and d.
      
  | 
  inlinestatic | 
Definition at line 131 of file parallel_reduce.h.
References tbb::task::allocate_root(), and tbb::task::spawn_root_and_wait().
Referenced by tbb::parallel_reduce().
      
  | 
  inlinestatic | 
Definition at line 144 of file parallel_reduce.h.
References tbb::task::allocate_root(), and tbb::task::spawn_root_and_wait().
      
  | 
  inline | 
      
  | 
  friend | 
Definition at line 97 of file parallel_reduce.h.
      
  | 
  private | 
Definition at line 87 of file parallel_reduce.h.
      
  | 
  private | 
Definition at line 90 of file parallel_reduce.h.
Referenced by tbb::interface9::internal::start_reduce< Range, Body, Partitioner >::start_reduce().
      
  | 
  private | 
Definition at line 89 of file parallel_reduce.h.
      
  | 
  private | 
Definition at line 88 of file parallel_reduce.h.