Show More
@@ -39,7 +39,7 b' class lock(object):' | |||||
39 | _host = None |
|
39 | _host = None | |
40 |
|
40 | |||
41 | def __init__(self, vfs, file, timeout=-1, releasefn=None, acquirefn=None, |
|
41 | def __init__(self, vfs, file, timeout=-1, releasefn=None, acquirefn=None, | |
42 | desc=None): |
|
42 | desc=None, parentlock=None): | |
43 | self.vfs = vfs |
|
43 | self.vfs = vfs | |
44 | self.f = file |
|
44 | self.f = file | |
45 | self.held = 0 |
|
45 | self.held = 0 | |
@@ -47,6 +47,9 b' class lock(object):' | |||||
47 | self.releasefn = releasefn |
|
47 | self.releasefn = releasefn | |
48 | self.acquirefn = acquirefn |
|
48 | self.acquirefn = acquirefn | |
49 | self.desc = desc |
|
49 | self.desc = desc | |
|
50 | self.parentlock = parentlock | |||
|
51 | self._parentheld = False | |||
|
52 | self._inherited = False | |||
50 | self.postrelease = [] |
|
53 | self.postrelease = [] | |
51 | self.pid = os.getpid() |
|
54 | self.pid = os.getpid() | |
52 | self.delay = self.lock() |
|
55 | self.delay = self.lock() |
General Comments 0
You need to be logged in to leave comments.
Login now