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

statvent is not thread-safe #6

Open
dowski opened this issue Mar 27, 2013 · 1 comment
Open

statvent is not thread-safe #6

dowski opened this issue Mar 27, 2013 · 1 comment
Labels

Comments

@dowski
Copy link
Owner

dowski commented Mar 27, 2013

statvent uses += to do incr. That operation is not thread-safe. If multiple threads are incrementing a metric at the same time, some of the increments will probably be lost.

@dowski
Copy link
Owner Author

dowski commented Mar 30, 2013

Looking into the best way to solve this. It currently isn't an issue for my production use of statvent (in a single-threaded event loop) but it's gross and I want to fix it.

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

1 participant