You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Well I just had a look at your code (when researching for a usage metrics library), but didn't check it out or sth. (still didn't decide on a library).
Since dec() calls inc() which does the lock, I don't think a lock is necessary in dec() This would result in deadlock since the dec() function would hold the lock, then inc() would try to attain it and would be unable to.
It seems like you forgot to lock the Counter on
dec()
:pyformance/pyformance/meters/counter.py
Line 20 in b71056e
The text was updated successfully, but these errors were encountered: