Navigation Menu

Skip to content

Commit

Permalink
Fix filter_mode namespace of pipeline in the code blocks (#1002)
Browse files Browse the repository at this point in the history
  • Loading branch information
aepanchi committed Jan 11, 2023
1 parent 2e9b2b1 commit c497ad8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions doc/main/tbb_userguide/Working_on_the_Assembly_Line_pipeline.rst
Expand Up @@ -115,13 +115,13 @@ the overhead of copying a ``TextSlice``.
oneapi::tbb::parallel_pipeline(
ntoken,
oneapi::tbb::make_filter<void,TextSlice*>(
oneapi::tbb::filter::serial_in_order, MyInputFunc(input_file) )
oneapi::tbb::filter_mode::serial_in_order, MyInputFunc(input_file) )
&
oneapi::tbb::make_filter<TextSlice*,TextSlice*>(
oneapi::tbb::filter::parallel, MyTransformFunc() )
oneapi::tbb::filter_mode::parallel, MyTransformFunc() )
&
oneapi::tbb::make_filter<TextSlice*,void>(
oneapi::tbb::filter::serial_in_order, MyOutputFunc(output_file) ) );
oneapi::tbb::filter_mode::serial_in_order, MyOutputFunc(output_file) ) );
}


Expand Down Expand Up @@ -172,13 +172,13 @@ equivalent version of the previous example that does this follows:


void RunPipeline( int ntoken, FILE* input_file, FILE* output_file ) {
oneapi::tbb::filter<void,TextSlice*> f1( oneapi::tbb::filter::serial_in_order,
oneapi::tbb::filter_mode<void,TextSlice*> f1( oneapi::tbb::filter_mode::serial_in_order,
MyInputFunc(input_file) );
oneapi::tbb::filter<TextSlice*,TextSlice*> f2(oneapi::tbb::filter::parallel,
oneapi::tbb::filter_mode<TextSlice*,TextSlice*> f2(oneapi::tbb::filter_mode::parallel,
MyTransformFunc() );
oneapi::tbb::filter<TextSlice*,void> f3(oneapi::tbb::filter::serial_in_order,
oneapi::tbb::filter_mode<TextSlice*,void> f3(oneapi::tbb::filter_mode::serial_in_order,
MyOutputFunc(output_file) );
oneapi::tbb::filter<void,void> f = f1 & f2 & f3;
oneapi::tbb::filter_mode<void,void> f = f1 & f2 & f3;
oneapi::tbb::parallel_pipeline(ntoken,f);
}

Expand Down

0 comments on commit c497ad8

Please sign in to comment.