Skip to content

Commit bf78ebf

Browse files
author
Pavel Kumbrasev
authored
Additional requirement to suspend user-provided function (#431)
Signed-off-by: pavelkumbrasev <pavel.kumbrasev@intel.com> Signed-off-by: pavelkumbrasev <pavel.kumbrasev@intel.com>
1 parent 3a158c1 commit bf78ebf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

source/elements/oneTBB/source/task_scheduler/scheduling_controls/resumable_tasks.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Requirements:
2323

2424
The ``oneapi::tbb::task::suspend`` function called within a running task suspends execution of the task and switches the thread to participate in other oneTBB parallel work.
2525
This function accepts a user callable object with the current execution context ``oneapi::tbb::task::suspend_point`` as an argument.
26+
The user-specified callable object is executed by the calling thread.
2627

2728
The ``oneapi::tbb::task::suspend_point`` context tag must be passed to the ``oneapi::tbb::task::resume`` function to trigger a program execution at the suspended point.
2829
The ``oneapi::tbb::task::resume`` function can be called at any point of an application, even on a separate thread.

0 commit comments

Comments
 (0)