diff options
author | Ask Solem <ask@celeryproject.org> | 2013-09-11 21:45:09 +0100 |
---|---|---|
committer | Ask Solem <ask@celeryproject.org> | 2013-09-11 21:45:09 +0100 |
commit | d260459269a27e505a8af968c5fbd5f4f3fb78c7 (patch) | |
tree | 6c8dfcd07f714c192f95f1f66f73bf0ccf3f4eec /kombu/clocks.py | |
parent | a136c7b434cfb306dd13f2d46fbffa024ca668ed (diff) | |
download | kombu-d260459269a27e505a8af968c5fbd5f4f3fb78c7.tar.gz |
LamportClock: can now set Lock class
Diffstat (limited to 'kombu/clocks.py')
-rw-r--r-- | kombu/clocks.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kombu/clocks.py b/kombu/clocks.py index 8d85bf21..ee06d750 100644 --- a/kombu/clocks.py +++ b/kombu/clocks.py @@ -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() |