LamportClock: can now set Lock class

This commit is contained in:
Ask Solem 2013-09-11 21:45:09 +01:00
parent a136c7b434
commit d260459269
1 changed files with 1 additions and 1 deletions

View File

@ -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()