Home
last modified time | relevance | path

Searched refs:task_handle (Results 1 – 9 of 9) sorted by relevance

/oneTBB/include/oneapi/tbb/detail/
H A D_task_handle.h33 class task_handle; variable
64 class task_handle {
72 task_handle() = default;
73 task_handle(task_handle&&) = default;
74 task_handle& operator=(task_handle&&) = default;
87 task_handle(task_handle_task* t) : m_handle {t}{}; in task_handle() function
97 static d1::task_group_context& ctx_of(task_handle& th) { in ctx_of()
103 inline bool operator==(task_handle const& th, std::nullptr_t) noexcept {
106 inline bool operator==(std::nullptr_t, task_handle const& th) noexcept {
110 inline bool operator!=(task_handle const& th, std::nullptr_t) noexcept {
[all …]
/oneTBB/test/conformance/
H A Dconformance_task_arena.cpp139 auto task_handle = tg.defer([&]{ run = true; }); in __anon3e0b77410602() variable
141 arena.enqueue(std::move(task_handle));
158 auto task_handle = tg.defer([&]{ run = true; }); in __anon3e0b77410702() local
160 oneapi::tbb::this_task_arena::enqueue(std::move(task_handle)); in __anon3e0b77410702()
182 auto task_handle = tg.defer([]{}); in __anon3e0b77410902() variable
188 task_handle = oneapi::tbb::task_handle{}; in __anon3e0b77410a02()
204 oneapi::tbb::task_handle h = tg.defer([&]{ in __anon3e0b77410c02()
221 oneapi::tbb::task_handle h = tg.defer([&]{ in __anon3e0b77410d02()
H A Dconformance_task_group.cpp51 oneapi::tbb::task_handle h;
72 oneapi::tbb::task_handle h;
94 oneapi::tbb::task_handle h;
109 oneapi::tbb::task_handle h;
127 (!std::is_copy_constructible<oneapi::tbb::task_handle>::value)
128 &&(!std::is_copy_assignable<oneapi::tbb::task_handle>::value),
148 oneapi::tbb::task_handle h = tg.defer([&]{ in __anon0c2008c70602()
180 oneapi::tbb::task_handle h = tg.defer([&]{ in __anon0c2008c70a02()
/oneTBB/doc/main/reference/
H A Dtask_group_extensions.rst42 task_handle defer(F&& f);
61 .. cpp:function:: template<typename F> task_handle defer(F&& f)
63 As an optimization hint, ``F`` might return a ``task_handle``, which task object can be executed ne…
66 …The ``task_handle`` returned by the function must be created using ``*this`` ``task_group``. That …
70 As an optimization hint, ``F`` might return a ``task_handle``, which task object can be executed ne…
73 …The ``task_handle`` returned by the function must be created using ``*this`` ``task_group``. That …
78 As an optimization hint, ``F`` might return a ``task_handle``, which task object can be executed ne…
81 …The ``task_handle`` returned by the function must be created with ``*this`` ``task_group``. It mea…
89 …`oneapi::tbb::task_handle class <https://oneapi-src.github.io/oneAPI-spec/spec/elements/oneTBB/sou…
/oneTBB/include/oneapi/tbb/
H A Dtask_group.h109 task_handle th = std::forward<F>(f)(); in task_ptr_or_nullptr_impl()
513 task_group_status internal_run_and_wait(d2::task_handle&& h) { in internal_run_and_wait()
542 d2::task_handle prepare_task_handle(F&& f) { in prepare_task_handle()
606 void run(d2::task_handle&& h) { in run()
616 d2::task_handle defer(F&& f) { in defer()
626 task_group_status run_and_wait(d2::task_handle&& h) { in run_and_wait()
685 void run(d2::task_handle&& h) { in run()
737 using detail::d2::task_handle;
H A Dtask_arena.h101 inline void enqueue_impl(task_handle&& th, d1::task_arena_base* ta) { in enqueue_impl()
393 void enqueue(d2::task_handle&& th) { in enqueue()
466 inline void enqueue(d2::task_handle&& th) { in enqueue()
/oneTBB/examples/migration/recursive_fibonacci/
H A Dtask_emulation_layer.h190 tbb::task_handle m_callback;
/oneTBB/test/tbb/
H A Dtest_task_arena.cpp1990 …CHECK_THROWS_WITH_AS(ta.enqueue(tbb::task_handle{}), "Attempt to schedule empty… in should_fail()
1991 …CHECK_THROWS_WITH_AS(tbb::this_task_arena::enqueue(tbb::task_handle{}), "Attempt to schedule empty… in should_fail()
H A Dtest_task_group.cpp1175 …CHECK_THROWS_WITH_AS(tg.run(tbb::task_handle{}), "Attempt to schedule empty task_handle", std::run… in should_fail()