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

Question about the multiple/unique branch #8

Open
lengyijun opened this issue Mar 14, 2021 · 1 comment
Open

Question about the multiple/unique branch #8

lengyijun opened this issue Mar 14, 2021 · 1 comment

Comments

@lengyijun
Copy link

I love this project and I use it as wallpaper.
But I have a question about the multiple/unique branch. I feel this branch is unnecessay.
I feel Mutex should always be used inside Arc. Mutex are never used alone.
If there are any example where Mutex is needed in a single thread?

I'm new to Rust and I may confuse something.

@Nytelife26
Copy link

Mutex in the graph is under the multiple threads branch. I think you may be reading the graph wrong. Mutexes are indeed used outside of Arc and other structures quite a lot, but no, never in single threads - which is why it's under the multiple threads branch.

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