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

tokio::sync::Mutex support #4

Open
johannescpk opened this issue Jul 1, 2021 · 1 comment
Open

tokio::sync::Mutex support #4

johannescpk opened this issue Jul 1, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@johannescpk
Copy link

Great work on the crate! Not sure how feasible async support generally for this approach is, but being able to use tokio's Mutex would be nice.

@bertptrs
Copy link
Owner

bertptrs commented Jul 2, 2021

Supporting tokio's mutexes would be nice, but like you said, it can't really work with the current design. I'm using thread-local variables to trace a single thread of execution and track what mutexes it holds. As soon as mutex guards start moving across threads, this does not work anymore. A similar but opposite thing came up with #2 as threads don't even exist in a no_std context.

There should be other ways of handling this, and I'm open to suggestions on how to do so.

@bertptrs bertptrs added the enhancement New feature or request label May 28, 2022
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

2 participants