Package proton :: Module utils :: Class AtomicCount
[frames] | no frames]

Class AtomicCount

source code


Instance Methods
 
__init__(self, start=0, step=1)
Thread-safe atomic counter.
source code
 
next(self)
Get the next value
source code
Method Details

__init__(self, start=0, step=1)
(Constructor)

source code 

Thread-safe atomic counter. Start at start, increment by step.

Overrides: object.__init__