make "source" argument to interlocks.acquire mandatory
This commit is contained in:
parent
e5782dd736
commit
7b1143a6ff
|
@ -45,7 +45,7 @@ class InterProcessLockBase:
|
||||||
|
|
||||||
def acquire_impl(self, wait): abstract
|
def acquire_impl(self, wait): abstract
|
||||||
|
|
||||||
def acquire(self, wait=False, retry_time=1, source=None):
|
def acquire(self, source, wait=False, retry_time=1):
|
||||||
if source == None:
|
if source == None:
|
||||||
source="Unknown"
|
source="Unknown"
|
||||||
if self._has_lock: # make sure 2nd acquire in same process fails
|
if self._has_lock: # make sure 2nd acquire in same process fails
|
||||||
|
|
Loading…
Reference in New Issue
Block a user