Intel(R) Threading Building Blocks Doxygen Documentation  version 4.2.3
ppl.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2005-2019 Intel Corporation
3 
4  Licensed under the Apache License, Version 2.0 (the "License");
5  you may not use this file except in compliance with the License.
6  You may obtain a copy of the License at
7 
8  http://www.apache.org/licenses/LICENSE-2.0
9 
10  Unless required by applicable law or agreed to in writing, software
11  distributed under the License is distributed on an "AS IS" BASIS,
12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  See the License for the specific language governing permissions and
14  limitations under the License.
15 */
16 
17 #ifndef __TBB_compat_ppl_H
18 #define __TBB_compat_ppl_H
19 
20 #include "../task_group.h"
21 #include "../parallel_invoke.h"
22 #include "../parallel_for_each.h"
23 #include "../parallel_for.h"
24 #include "../tbb_exception.h"
25 #include "../critical_section.h"
26 #include "../reader_writer_lock.h"
27 #include "../combinable.h"
28 
29 namespace Concurrency {
30 
31 #if __TBB_TASK_GROUP_CONTEXT
32  using tbb::task_handle;
34  using tbb::task_group;
37  using tbb::missing_wait;
38  using tbb::make_task;
39 
40  using tbb::not_complete;
41  using tbb::complete;
42  using tbb::canceled;
43 
45 #endif /* __TBB_TASK_GROUP_CONTEXT */
46 
52  using tbb::combinable;
53 
54  using tbb::improper_lock;
55 
56 } // namespace Concurrency
57 
58 #endif /* __TBB_compat_ppl_H */
task_handle< typename internal::strip< F >::type > make_task(F &&f)
Definition: task_group.h:243
void parallel_invoke(const F0 &f0, const F1 &f1, tbb::task_group_context &context)
Executes a list of tasks in parallel and waits for all tasks to complete.
Writer-preference reader-writer lock with local-only spinning on readers.
Exception for repeated scheduling of the same task_handle.
Definition: tbb_exception.h:55
Exception for PPL locks.
Definition: tbb_exception.h:37
Thread-local storage with optional reduction.
Definition: combinable.h:30
internal::critical_section_v4 critical_section
void parallel_for(Index first, Index last, Index step, const Function &f)
Parallel iteration over a range of integers with a step provided and default partitioner.
bool is_current_task_group_canceling()
Definition: task_group.h:237
Exception for missing wait on structured_task_group.
Definition: tbb_exception.h:49
task_group_status
Definition: task_group.h:61
void parallel_for_each(Iterator first, Iterator last, const Function &f, task_group_context &context)
Calls function f for all items from [first, last) interval using user-supplied context.

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.