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

Are all these structures thread safe? #68

Closed
YanKawaYu opened this issue Nov 18, 2017 · 3 comments
Closed

Are all these structures thread safe? #68

YanKawaYu opened this issue Nov 18, 2017 · 3 comments
Labels

Comments

@YanKawaYu
Copy link

YanKawaYu commented Nov 18, 2017

Hi guys, I'm wondering whether I should use RWMutex with the structures? I'm working on a concurrent application.
Thanks very much!

@emirpasic
Copy link
Owner

@zhaoxy2850 No, they are not. Thread safety is not a concern of this project. This should be handled at a higher level, hence use of RWMutex to wrap GoDS insertion/retrieval methods is the way to go.

@YanKawaYu
Copy link
Author

Thanks!

@lthibault
Copy link

@emirpasic Does this these data structures are safe for concurrent reads? (e.g. with an iterator?)

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

No branches or pull requests

3 participants