ppl.h 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. /*
  2. Copyright (c) 2005-2020 Intel Corporation
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. #include "../internal/_deprecated_header_message_guard.h"
  14. #if !defined(__TBB_show_deprecation_message_ppl_H) && defined(__TBB_show_deprecated_header_message)
  15. #define __TBB_show_deprecation_message_ppl_H
  16. #pragma message("TBB Warning: tbb/compat/ppl.h is deprecated. For details, please see Deprecated Features appendix in the TBB reference manual.")
  17. #endif
  18. #if defined(__TBB_show_deprecated_header_message)
  19. #undef __TBB_show_deprecated_header_message
  20. #endif
  21. #ifndef __TBB_compat_ppl_H
  22. #define __TBB_compat_ppl_H
  23. #define __TBB_ppl_H_include_area
  24. #include "../internal/_warning_suppress_enable_notice.h"
  25. #include "../task_group.h"
  26. #include "../parallel_invoke.h"
  27. #include "../parallel_for_each.h"
  28. #include "../parallel_for.h"
  29. #include "../tbb_exception.h"
  30. #include "../critical_section.h"
  31. #include "../reader_writer_lock.h"
  32. #include "../combinable.h"
  33. namespace Concurrency {
  34. #if __TBB_TASK_GROUP_CONTEXT
  35. using tbb::task_handle;
  36. using tbb::task_group_status;
  37. using tbb::task_group;
  38. using tbb::structured_task_group;
  39. using tbb::invalid_multiple_scheduling;
  40. using tbb::missing_wait;
  41. using tbb::make_task;
  42. using tbb::not_complete;
  43. using tbb::complete;
  44. using tbb::canceled;
  45. using tbb::is_current_task_group_canceling;
  46. #endif /* __TBB_TASK_GROUP_CONTEXT */
  47. using tbb::parallel_invoke;
  48. using tbb::strict_ppl::parallel_for;
  49. using tbb::parallel_for_each;
  50. using tbb::critical_section;
  51. using tbb::reader_writer_lock;
  52. using tbb::combinable;
  53. using tbb::improper_lock;
  54. } // namespace Concurrency
  55. #include "../internal/_warning_suppress_disable_notice.h"
  56. #undef __TBB_ppl_H_include_area
  57. #endif /* __TBB_compat_ppl_H */