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

Might want to lock stuff here? #151

Open
iProgramMC opened this issue Feb 22, 2021 · 2 comments
Open

Might want to lock stuff here? #151

iProgramMC opened this issue Feb 22, 2021 · 2 comments

Comments

@iProgramMC
Copy link

get { return m_connections.Count; }

Might want to put this in lock brackets, like when getting Connections

@PJB3005
Copy link
Contributor

PJB3005 commented Feb 22, 2021

While it's perhaps not 100% kosher, reading integers is atomic in C# so with CoreCLR's current List<T> implementation there shouldn't actually be any chance of getting any threading bugs on this.

@iProgramMC
Copy link
Author

iProgramMC commented Feb 22, 2021 via email

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