fix: scope runtime release proof and bound native file probes
This commit is contained in:
1 parent
a1b38c242f
commit
b070837acb
10 files changed
+816
-77
No files matched your search
@@ -25,9 +25,9 @@ def fixture_authority(root, library, token):
|
||||
|
||||
|
||||
def current_lease(library):
|
||||
from .library_lock import LibraryLock, _guard, _owners, blocker_path, checkpoint_record
|
||||
from .library_lock import LibraryLock, _library_guard, _owners, blocker_path, checkpoint_record
|
||||
lease = LibraryLock(library)
|
||||
with _guard:
|
||||
with _library_guard(lease.key):
|
||||
owner = _owners.get(lease.key)
|
||||
guard = checkpoint_record(blocker_path(library))
|
||||
if (owner is None or owner['retained'] or owner['thread'] != threading.get_ident()
|
||||
|
||||
Reference in new issue
Block a user