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 500 of file pipeline.cpp.

Constructor & Destructor Documentation

◆ pipeline_cleaner()

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

Definition at line 503 of file pipeline.cpp.

503  :
504  my_pipeline(_pipeline)
505  {}

◆ ~pipeline_cleaner()

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

Definition at line 506 of file pipeline.cpp.

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

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 501 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.