mirror of https://github.com/celery/kombu.git
LamportClock: can now set Lock class
This commit is contained in:
parent
a136c7b434
commit
d260459269
|
@ -54,7 +54,7 @@ class LamportClock(object):
|
|||
#: The clocks current value.
|
||||
value = 0
|
||||
|
||||
def __init__(self, initial_value=0):
|
||||
def __init__(self, initial_value=0, Lock=Lock):
|
||||
self.value = initial_value
|
||||
self.mutex = Lock()
|
||||
|
||||
|
|
Loading…
Reference in New Issue