Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Task Isolation like TBB #522

Open
bradphelan opened this issue Oct 13, 2023 · 2 comments
Open

Task Isolation like TBB #522

bradphelan opened this issue Oct 13, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@bradphelan
Copy link
Contributor

Using any kind of thread local variable or mutex in the presence of nested tasking is problematic.

https://link.springer.com/chapter/10.1007/978-1-4842-4398-5_12

Taskflow doesn't currently provide any primitives to support task isolation.

In taskflow the equivalent nested task would cause a deadlock

image

tbb provides the task isolation primitives too assist with this. The attached article goes into more details and usecases.

@olologin
Copy link

olologin commented Feb 27, 2024

@tsung-wei-huang FYI: We will try to implement this soon, because one of our developers is interested in implementing it.

@tsung-wei-huang
Copy link
Member

@olologin that would be great! Please keep me posted :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants