Skip to content

Additional requirement for user-specified callable of oneapi::tbb::task::suspend#431

Merged
kboyarinov merged 1 commit intouxlfoundation:mainfrom
pavelkumbrasev:pavelkumbrasev/update_suspend
Aug 24, 2022
Merged

Additional requirement for user-specified callable of oneapi::tbb::task::suspend#431
kboyarinov merged 1 commit intouxlfoundation:mainfrom
pavelkumbrasev:pavelkumbrasev/update_suspend

Conversation

@pavelkumbrasev
Copy link
Copy Markdown

Added a requirement on the place where user-specified callable of oneapi::tbb::task::suspend should be called.
Signed-off-by: pavelkumbrasev pavel.kumbrasev@intel.com

Signed-off-by: pavelkumbrasev <pavel.kumbrasev@intel.com>
@pavelkumbrasev
Copy link
Copy Markdown
Author

@kboyarinov @alexandraepan Could you please have a look?


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.
This function accepts a user callable object with the current execution context ``oneapi::tbb::task::suspend_point`` as an argument.
The user-specified callable object is executed by the calling thread.
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we have the info somewhere about parameters a user can specify it with?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Contributor

@kboyarinov kboyarinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kboyarinov kboyarinov merged commit bf78ebf into uxlfoundation:main Aug 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants