Searched refs:Fn (Results 1 – 3 of 3) sorted by relevance
| /oneTBB/include/oneapi/tbb/ |
| H A D | collaborative_call_once.h | 53 template<typename Fn> in alignas() 54 void isolated_execute(Fn f) { in alignas() 141 template <typename Fn, typename... Args> 142 friend void collaborative_call_once(collaborative_once_flag& flag, Fn&& f, Args&&... args); 155 template <typename Fn> 156 void do_collaborative_call_once(Fn&& f) { in do_collaborative_call_once() 165 std::forward<Fn>(f)(); in do_collaborative_call_once() 207 template <typename Fn, typename... Args> 208 void collaborative_call_once(collaborative_once_flag& flag, Fn&& fn, Args&&... args) { in collaborative_call_once() 216 auto func = [&] { call(std::forward<Fn>(fn), std::move(stored_pack)); }; in collaborative_call_once()
|
| /oneTBB/test/tbb/ |
| H A D | test_collaborative_call_once.cpp | 75 template<typename Fn, typename... Args> 76 void call_once_in_for_loop(std::size_t N, Fn&& body, Args&&... args) { in call_once_in_for_loop() 79 tbb::collaborative_call_once(flag, std::forward<Fn>(body), std::forward<Args>(args)...); in call_once_in_for_loop() 83 template<typename Fn, typename... Args> 84 void call_once_in_parallel_for(std::size_t N, Fn&& body, Args&&... args) { in call_once_in_parallel_for() 88 auto func = [&] { tbb::detail::d0::call(std::forward<Fn>(body), std::move(stored_pack)); }; in call_once_in_parallel_for() 96 tbb::collaborative_call_once(flag, std::forward<Fn>(body), std::forward<Args>(args)...); in call_once_in_parallel_for() 102 template<typename Fn, typename... Args> 103 void call_once_threads(std::size_t N, Fn&& body, Args&&... args) { in call_once_threads() 109 auto func = [&] { tbb::detail::d0::call(std::forward<Fn>(body), std::move(stored_pack)); }; in call_once_threads() [all …]
|
| H A D | test_tbb_header.cpp | 91 #define TestFuncDefinitionPresence(Fn, Args, ReturnType) { ReturnType (*pfn)Args = &tbb::Fn; (void)… argument
|