statvent icon indicating copy to clipboard operation
statvent copied to clipboard

statvent is not thread-safe

Open dowski opened this issue 12 years ago • 1 comments

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 avatar Mar 27 '13 13:03 dowski

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.

dowski avatar Mar 30 '13 04:03 dowski