Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
tbb::internal::pipeline_cleaner Class Reference
Inheritance diagram for tbb::internal::pipeline_cleaner:
Collaboration diagram for tbb::internal::pipeline_cleaner:

Public Member Functions

 pipeline_cleaner (pipeline &_pipeline)
 
 ~pipeline_cleaner ()
 

Private Attributes

pipelinemy_pipeline
 

Additional Inherited Members

- Private Member Functions inherited from tbb::internal::no_copy
 no_copy ()
 Allow default construction. More...
 

Detailed Description

Definition at line 504 of file pipeline.cpp.

Constructor & Destructor Documentation

◆ pipeline_cleaner()

tbb::internal::pipeline_cleaner::pipeline_cleaner ( pipeline _pipeline)
inline

Definition at line 507 of file pipeline.cpp.

507  :
508  my_pipeline(_pipeline)
509  {}

◆ ~pipeline_cleaner()

tbb::internal::pipeline_cleaner::~pipeline_cleaner ( )
inline

Definition at line 510 of file pipeline.cpp.

510  {
511 #if __TBB_TASK_GROUP_CONTEXT
512  if (my_pipeline.end_counter->is_cancelled()) // Pipeline was cancelled
514 #endif
515  my_pipeline.end_counter = NULL;
516  }
task * end_counter
task who's reference count is used to determine when all stages are done.
Definition: pipeline.h:274
void clear_filters()
Does clean up if pipeline is cancelled or exception occurred.
bool is_cancelled() const
Returns true if the context has received cancellation request.
Definition: task.h:913

References tbb::pipeline::clear_filters(), tbb::pipeline::end_counter, tbb::task::is_cancelled(), and my_pipeline.

Here is the call graph for this function:

Member Data Documentation

◆ my_pipeline

pipeline& tbb::internal::pipeline_cleaner::my_pipeline
private

Definition at line 505 of file pipeline.cpp.

Referenced by ~pipeline_cleaner().


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

Copyright © 2005-2019 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.