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

unwrap function in MutexGuard? #113

Closed
SergeyVolkovich99 opened this issue Aug 15, 2021 · 4 comments
Closed

unwrap function in MutexGuard? #113

SergeyVolkovich99 opened this issue Aug 15, 2021 · 4 comments

Comments

@SergeyVolkovich99
Copy link

Hello, recently i become writing nostd application but i getting error while trying to unwrap .lock() how it might be fixed?

@zesterer
Copy link
Collaborator

spin's Mutex does not have lock poisoning, so you don't need use .unwrao(): the call to .lock() can never fail.

@SergeyVolkovich99
Copy link
Author

simply problem in types, my function receive Arc but after .lock() i get MutexGuard<Arc>

@zesterer
Copy link
Collaborator

Is this resolved then?

@SergeyVolkovich99
Copy link
Author

yes

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

No branches or pull requests

2 participants