MCPcopy Create free account

hub / github.com/tox-dev/filelock / functions

Functions1,605 in github.com/tox-dev/filelock

↓ 3 callersFunction_fork_event
()
tests/soft_rw/test_soft_rw_sync.py:1219
↓ 3 callersMethod_mark_descriptor_pending
(self, fd: int, identity: tuple[int, int] | None = None)
src/filelock/_api.py:1142
↓ 3 callersFunction_markers
(tmp_path: Path)
tests/soft_rw/test_soft_rw_async.py:90
↓ 3 callersFunction_open_directory
(directory: str)
src/filelock/_strict.py:783
↓ 3 callersFunction_open_raising_for
(claim: Path, error: OSError, mocker: MockerFixture)
tests/test_strict_soft_failures.py:886
↓ 3 callersFunction_parse_lock_holder
(content: str | None)
src/filelock/_soft.py:237
↓ 3 callersFunction_parse_marker_bytes
(data: bytes)
src/filelock/_soft_rw/_sync.py:811
↓ 3 callersFunction_patch_async_rollback_failure
( mocker: MockerFixture, loop: asyncio.AbstractEventLoop, rollback_started: asyncio.Event, fin
tests/test_async_read_write_cancellation.py:403
↓ 3 callersFunction_probe_lock
(lock_type: type[BaseFileLock], path: str)
tests/test_fork_ownership.py:542
↓ 3 callersMethod_raise_if_process_changed
(self, operation_pid: int)
src/filelock/_read_write.py:718
↓ 3 callersMethod_read_owner
(self)
src/filelock/_marker.py:81
↓ 3 callersFunction_record_owned_descriptor
(fd: int, identity: tuple[int, int] | None)
src/filelock/_api.py:1612
↓ 3 callersMethod_release_in_context
(self, body_error: BaseException | None)
src/filelock/_api.py:963
↓ 3 callersMethod_submit
( self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs )
src/filelock/_async_read_write.py:281
↓ 3 callersFunction_unlink_in_directory
(directory: Path, name: str)
src/filelock/_strict.py:745
↓ 3 callersMethod_unlink_writer_marker_if_ours
(self, token: str)
src/filelock/_soft_rw/_sync.py:397
↓ 3 callersMethod_windows_unlink_if_ours
(self, identity: tuple[int, int])
src/filelock/_soft.py:187
↓ 3 callersMethodflock
(fd: int, operation: int)
tests/async_filelock_cancellation_helpers.py:20
↓ 3 callersMethodidentity
(path: pathlib.Path)
src/filelock/_read_write.py:129
↓ 3 callersMethodnote_sqlite_use
(self)
src/filelock/_read_write.py:118
↓ 3 callersMethodpoison_after_fork
(self, path: pathlib.Path, identity: _DatabaseIdentity | None)
src/filelock/_read_write.py:113
↓ 3 callersMethodrelease
Release one level of the current lock. :param force: if ``True``, release the lock completely regardless of the current lock level
src/filelock/_soft_rw/_async.py:188
↓ 3 callersMethodrun_in_executor
Whether run in executor.
src/filelock/asyncio.py:229
↓ 3 callersFunctiontouch
(name: str, *, fd: int | None = None)
src/filelock/_util.py:113
↓ 2 callersMethod__exit__
Release the lock, reconciling a release failure with any body failure per :attr:`context_error_policy`.
src/filelock/_api.py:954
↓ 2 callersMethod_acquire
(self, mode: Literal["read", "write"], timeout: float, *, blocking: bool)
src/filelock/_read_write.py:500
↓ 2 callersMethod_acquire
( self, mode: _Mode, timeout: float | None, *, blocking: bool | None,
src/filelock/_soft_rw/_sync.py:412
↓ 2 callersMethod_any_readers
(self)
src/filelock/_soft_rw/_sync.py:661
↓ 2 callersFunction_async_constructor
()
tests/test_subclass_options.py:235
↓ 2 callersFunction_atomic_create_marker
(name: str, token: str, *, dir_fd: int | None = None)
src/filelock/_soft_rw/_sync.py:894
↓ 2 callersFunction_backends
(root: Path)
tasks/benchmark.py:68
↓ 2 callersMethod_check_give_up
( self, *, blocking: bool, cancel_check: Callable[[], bool] | None, ti
src/filelock/_api.py:1401
↓ 2 callersMethod_clear_lock_state
(self)
src/filelock/_read_write.py:465
↓ 2 callersFunction_crash_during_private_publication
(stage: str)
tests/test_strict_soft_recovery.py:118
↓ 2 callersMethod_discard_doorway
(self, fd: int, identity: tuple[int, int])
src/filelock/_strict.py:242
↓ 2 callersMethod_drop_registry_entry
Forget the key owned by this hold without resolving a mutable path again.
src/filelock/_api.py:1375
↓ 2 callersFunction_fail_close_of
(mocker: MockerFixture, lock: BaseAsyncFileLock, error: OSError)
tests/test_async_filelock.py:1026
↓ 2 callersFunction_file_exists
(path: str)
src/filelock/_soft_rw/_sync.py:926
↓ 2 callersFunction_hold_reports_foreign_identity
(mocker: MockerFixture)
tests/test_soft_stale.py:407
↓ 2 callersMethod_iter_reader_entries
Yield ``(name, dirfd_relative)`` pairs for every live reader marker. ``dirfd_relative`` is ``True`` when *name* should be passed to
src/filelock/_soft_rw/_sync.py:667
↓ 2 callersMethod_leave
(self, ticket: ConcurrentFuture[None])
src/filelock/_async.py:106
↓ 2 callersFunction_link_no_follow
( source: str | Path, destination: str | Path, *, src_dir_fd: int | None = None, dst_dir_f
src/filelock/_strict.py:666
↓ 2 callersFunction_lock_fd_nonblocking
(_fd: int)
src/filelock/_unix.py:34
↓ 2 callersMethod_open_connection
(self, *, sqlite_timeout: float)
src/filelock/_read_write.py:630
↓ 2 callersFunction_open_marker
(name: str, *, dir_fd: int | None = None)
src/filelock/_soft_rw/_sync.py:804
↓ 2 callersFunction_open_marker_fd
(name: str, *, dir_fd: int | None = None)
src/filelock/_soft_rw/_sync.py:796
↓ 2 callersMethod_open_readers_dir
(self)
src/filelock/_soft_rw/_sync.py:633
↓ 2 callersFunction_open_record
(path: Path, limit: int)
src/filelock/_strict.py:796
↓ 2 callersFunction_parse_claim_name
(name: str)
src/filelock/_strict.py:422
↓ 2 callersFunction_patch_async_rollback
( mocker: MockerFixture, loop: asyncio.AbstractEventLoop, rollback_started: asyncio.Event, fin
tests/test_async_read_write_cancellation.py:344
↓ 2 callersFunction_percentile
(values: list[float], percentile: int)
tasks/benchmark.py:199
↓ 2 callersFunction_private_public_name
(private_name: str)
src/filelock/_strict.py:572
↓ 2 callersFunction_probe_hard_link_unsupported_errnos
()
src/filelock/_strict.py:82
↓ 2 callersFunction_probe_link_follow_symlinks
()
src/filelock/_strict.py:61
↓ 2 callersFunction_publish_record
( public_path: str, record: bytes, mode: int, )
src/filelock/_strict.py:449
↓ 2 callersMethod_raise_acquire_rollback_errors
(self, acquire_error: BaseException, rollback_error: BaseException)
src/filelock/asyncio.py:432
↓ 2 callersMethod_raise_cancelled_errors
( self, message: str, cancellation: asyncio.CancelledError, first_error: BaseE
src/filelock/asyncio.py:437
↓ 2 callersMethod_raise_if_acquiring
(self, operation: Literal["acquire", "close", "release"])
src/filelock/_read_write.py:711
↓ 2 callersFunction_raise_if_hard_links_unsupported
(lock_file: str, error: NotImplementedError | OSError)
src/filelock/_strict.py:855
↓ 2 callersMethod_raise_if_inherited
(self)
src/filelock/_soft_rw/_async.py:205
↓ 2 callersMethod_raise_if_unusable
(self)
src/filelock/_async_read_write.py:298
↓ 2 callersMethod_raise_if_would_deadlock
Fail fast when a *different* live instance already holds this path in the current deadlock scope. Only the first, indefinitely-block
src/filelock/_api.py:1173
↓ 2 callersFunction_raise_recorded_errors
(message: str, errors: list[BaseException])
src/filelock/_strict.py:739
↓ 2 callersFunction_read_existing_claims
(lock_file: str, directory: Path)
src/filelock/_strict.py:388
↓ 2 callersFunction_read_marker
(name: str, *, dir_fd: int | None = None)
src/filelock/_soft_rw/_sync.py:772
↓ 2 callersFunction_reclaim_private_record
(directory_ref: tuple[str, int | None], private_name: str, now: float)
src/filelock/_strict.py:593
↓ 2 callersMethod_reconcile_failed_acquire
(self, canonical: str)
src/filelock/_api.py:1251
↓ 2 callersMethod_refresh_marker
(self)
src/filelock/_soft_rw/_sync.py:700
↓ 2 callersFunction_refresh_owner_pins
()
src/filelock/_api.py:1770
↓ 2 callersFunction_register_owned_descriptor
(fd: int, identity: tuple[int, int] | None = None)
src/filelock/_api.py:1595
↓ 2 callersMethod_registry_key
(self, canonical: str)
src/filelock/_api.py:1189
↓ 2 callersFunction_relative_identity
(directory_ref: tuple[str, int | None], name: str)
src/filelock/_strict.py:627
↓ 2 callersMethod_release
(self, *, force: bool, close: bool)
src/filelock/_read_write.py:442
↓ 2 callersMethod_release_in_context
(self, body_error: BaseException | None)
src/filelock/_async_read_write.py:161
↓ 2 callersMethod_release_in_context
( # ty: ignore[invalid-method-override] self, body_error: BaseException | None )
src/filelock/asyncio.py:651
↓ 2 callersMethod_report_compromise
( self, claim: _LeaseClaim, reason: CompromiseReason, error: OSError | None,
src/filelock/_lease.py:315
↓ 2 callersFunction_resolve_lifetime
Validate ``lifetime`` and drop a value the backend cannot honor. ``lifetime`` is a deliberate age-based lease: a lock file older than ``life
src/filelock/_api.py:503
↓ 2 callersFunction_retarget_parent
(lock_path: Path, replacement_path: Path)
tests/test_filelock.py:1442
↓ 2 callersFunction_retarget_parent
(lock_path: Path, replacement_path: Path)
tests/test_async_filelock.py:637
↓ 2 callersMethod_rollback_failed_acquire
(self, acquisition_error: BaseException)
src/filelock/_api.py:1290
↓ 2 callersMethod_run
(self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs)
src/filelock/_soft_rw/_async.py:230
↓ 2 callersMethod_run_acquire
(self, acquire: Callable[[], AcquireReturnProxy])
src/filelock/_async_read_write.py:253
↓ 2 callersMethod_run_acquire
(self, acquire: Callable[[], AcquireReturnProxy])
src/filelock/_soft_rw/_async.py:210
↓ 2 callersMethod_start_internal_method
( self, method: Callable[[], None] | Callable[[], Coroutine[None, None, None]] )
src/filelock/asyncio.py:507
↓ 2 callersMethod_stop_heartbeat
(self)
src/filelock/_lease.py:255
↓ 2 callersMethod_submit
( self, func: Callable[_P, _R], *args: _P.args, **kwargs: _P.kwargs )
src/filelock/_soft_rw/_async.py:244
↓ 2 callersFunction_supports_symlink
()
tasks/capabilities.py:30
↓ 2 callersFunction_symlinked_lock_paths
(tmp_path: Path)
tests/test_filelock.py:1432
↓ 2 callersFunction_symlinked_lock_paths
(tmp_path: Path)
tests/test_async_filelock.py:627
↓ 2 callersFunction_sync_constructor
()
tests/test_subclass_options.py:231
↓ 2 callersFunction_timed
(name: str, run: Callable[[], object], *, unit: str, scale: float)
tasks/benchmark.py:186
↓ 2 callersMethod_touch_writer_marker_if_ours
(self, token: str)
src/filelock/_soft_rw/_sync.py:566
↓ 2 callersFunction_track_sqlite_use
(event: str, _args: Unused)
src/filelock/_read_write.py:749
↓ 2 callersMethod_try_break_expired_lock
Remove the lock file if its modification time exceeds the configured :attr:`lifetime`.
src/filelock/_api.py:1387
↓ 2 callersFunction_unlink_owner_paths
(paths: tuple[str, ...])
src/filelock/_strict.py:722
↓ 2 callersFunction_unlink_relative
(directory_ref: tuple[str, int | None], name: str)
src/filelock/_strict.py:687
↓ 2 callersFunction_unlock_fd
(_fd: int)
src/filelock/_unix.py:37
↓ 2 callersFunction_unregister_owned_descriptor
(token: int)
src/filelock/_api.py:1624
↓ 2 callersMethod_unregister_released_descriptor
(self)
src/filelock/_api.py:1354
↓ 2 callersMethod_validate_reentrant
(self, mode: Literal["read", "write"])
src/filelock/_read_write.py:683
← previousnext →101–200 of 1,605, ranked by callers