BRE12
ppl.h
1 /*
2  Copyright 2005-2016 Intel Corporation. All Rights Reserved.
3 
4  This file is part of Threading Building Blocks. Threading Building Blocks is free software;
5  you can redistribute it and/or modify it under the terms of the GNU General Public License
6  version 2 as published by the Free Software Foundation. Threading Building Blocks is
7  distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the
8  implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
9  See the GNU General Public License for more details. You should have received a copy of
10  the GNU General Public License along with Threading Building Blocks; if not, write to the
11  Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
12 
13  As a special exception, you may use this file as part of a free software library without
14  restriction. Specifically, if other files instantiate templates or use macros or inline
15  functions from this file, or you compile this file and link it with other files to produce
16  an executable, this file does not by itself cause the resulting executable to be covered
17  by the GNU General Public License. This exception does not however invalidate any other
18  reasons why the executable file might be covered by the GNU General Public License.
19 */
20 
21 #ifndef __TBB_compat_ppl_H
22 #define __TBB_compat_ppl_H
23 
24 #include "../task_group.h"
25 #include "../parallel_invoke.h"
26 #include "../parallel_for_each.h"
27 #include "../parallel_for.h"
28 #include "../tbb_exception.h"
29 #include "../critical_section.h"
30 #include "../reader_writer_lock.h"
31 #include "../combinable.h"
32 
33 namespace Concurrency {
34 
35 #if __TBB_TASK_GROUP_CONTEXT
36  using tbb::task_handle;
37  using tbb::task_group_status;
38  using tbb::task_group;
41  using tbb::missing_wait;
42  using tbb::make_task;
43 
44  using tbb::not_complete;
45  using tbb::complete;
46  using tbb::canceled;
47 
48  using tbb::is_current_task_group_canceling;
49 #endif /* __TBB_TASK_GROUP_CONTEXT */
50 
56  using tbb::combinable;
57 
58  using tbb::improper_lock;
59 
60 } // namespace Concurrency
61 
62 #endif /* __TBB_compat_ppl_H */
Exception for PPL locks.
Definition: tbb_exception.h:52
Definition: task_group.h:194
Definition: critical_section.h:40
Definition: ppl.h:33
Exception for repeated scheduling of the same task_handle.
Definition: tbb_exception.h:70
Definition: task_group.h:164
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.
Definition: parallel_for.h:278
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.
Definition: parallel_for_each.h:96
Definition: task_group.h:39
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.
Definition: parallel_invoke.h:256
Thread-local storage with optional reduction.
Definition: combinable.h:34
Writer-preference reader-writer lock with local-only spinning on readers.
Definition: reader_writer_lock.h:34
Exception for missing wait on structured_task_group.
Definition: tbb_exception.h:64