class documentation
A thread-safe counter.
| Method | __init__ |
Initialize the counter with an initial value. |
| Method | decrement |
Decrement the counter. |
| Method | increment |
Increment the counter. |
| Method | value |
Get the counter value. |
| Instance Variable | counter |
The counter value. |
| Instance Variable | lock |
The lock object. |
Decrement the counter.
| Parameters | |
value:int | The value to decrement the counter by. |
| Returns | |
int | The new counter value. |