MCPcopy Create free account

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

Functions3,548 in github.com/tox-dev/filelock

↓ 2 callersFunctionmake_ro
(path: Path)
tests/core/test_lock.py:81
↓ 2 callersFunctionmark_claim_for_deletion
( fd: int, path: str, private_name: Callable[[], str] | None = None, *,
src/filelock/_soft/_strict/_windows.py:63
↓ 2 callersFunctionmount_over_boot_id
(mocker: MockerFixture)
tests/identity/conftest.py:37
↓ 2 callersMethodon_acquired
The callback run with the borrowed lock descriptor once per physical acquisition, or ``None``. Native locks only. It runs after the
src/filelock/_core/_lock.py:291
↓ 2 callersFunctionopen_non_reparse_fd
Open a lock file without following reparse points. :param path: lock file name :param mode: requested creation permissions
src/filelock/_filesystem/_windows/_handles.py:168
↓ 2 callersFunctionopen_record
( directory_ref: tuple[str, int | None], name: str, limit: int, *, deletable: bool = False )
src/filelock/_soft/_strict/_scan.py:232
↓ 2 callersFunctionowner_is_current_process
(pid: int, hostname: str, start_token: int | None)
src/filelock/_identity/_process.py:38
↓ 2 callersFunctionowner_only_descriptor
()
src/filelock/_filesystem/_windows/_handles.py:205
↓ 2 callersFunctionparse_decimal
(text: str)
src/filelock/_soft/_records.py:81
↓ 2 callersFunctionpin_directory
Keep a directory from being renamed until its pin is released. :param path: directory to pin :param wait_for_oplock: wait fo
src/filelock/_filesystem/_windows/_directories.py:89
↓ 2 callersFunctionprobe
()
tasks/capabilities.py:124
↓ 2 callersFunctionpublish_record
( public_path: str, record: bytes, mode: int, directory_opener: Callable[[str], int] | None =
src/filelock/_soft/_strict/_publication.py:101
↓ 2 callersFunctionraise_on_not_writable_file
(filename: str)
src/filelock/_filesystem/_files.py:19
↓ 2 callersFunctionread
()
tests/soft/read_write/test_async.py:229
↓ 2 callersFunctionread_and_probe
(lock: AsyncSoftReadWriteLock)
tests/soft/read_write/async_helpers.py:104
↓ 2 callersMethodread_lock
Hold a shared lock until the context exits. See :meth:`acquire_read` for timeouts, reentrancy and errors. :param timeout: w
src/filelock/_soft/_read_write/_lock.py:261
↓ 2 callersMethodrefresh
( self, lock: HoldLifecycle, report: Callable[[Hold, CompromiseReason, Exception | Non
src/filelock/_soft/_read_write/_hold.py:139
↓ 2 callersFunctionregister_owned_descriptor
(fd: int, identity: tuple[int, int] | None)
src/filelock/_core/_fork.py:136
↓ 2 callersMethodrelease
Release one level held by this task through this wrapper. :param force: release every level the task holds through this wrapper
src/filelock/_async_lock/_backends.py:230
↓ 2 callersMethodrelease
Release one lock level. The final release unlocks the file and may delete it, depending on the platform. If cancellation interrupts
src/filelock/_async_lock/_release.py:101
↓ 2 callersFunctionrelease_lock
()
tests/async_lock/test_release_cancellation.py:67
↓ 2 callersFunctionrelease_over_a_successor_marker
(lock_path: Path)
tests/soft/exclusive/recovery_helpers.py:96
↓ 2 callersFunctionrename_open_file
Publish the open file without overwriting another claim. :param fd: descriptor of the private file :param public_path: desti
src/filelock/_filesystem/_windows/_handles.py:394
↓ 2 callersFunctionreport
(compromise: LeaseCompromise)
tests/async_lock/test_backends.py:72
↓ 2 callersMethodreset_synchronization
(self)
src/filelock/_core/_fork.py:170
↓ 2 callersFunctionresolve_lazy_imports_before_shutdown
()
src/filelock/_core/_shutdown.py:22
↓ 2 callersMethodretain
(self, keys: set[str])
src/filelock/_soft/_read_write/_sweep.py:54
↓ 2 callersFunctionrun
()
tests/process_helpers.py:58
↓ 2 callersFunctionrun
()
tests/soft/read_write/test_async_executor.py:62
↓ 2 callersMethodrun
(self, latest: Snapshot | None, token: str)
src/filelock/_soft/_read_write/_sweep.py:81
↓ 2 callersFunctionrun_in_executor
( loop: asyncio.AbstractEventLoop, executor: Executor | None, func: Callable[[], _T] )
src/filelock/_async_lock/_executor.py:104
↓ 2 callersFunctionsubmit_call
( loop: asyncio.AbstractEventLoop, executor: Executor | None, func: Callable[[], _T] )
src/filelock/_async_lock/_executor.py:127
↓ 2 callersMethodsweep
(self, parent: Path, identity: DatabaseIdentity, owner: int)
src/filelock/_sqlite/_links.py:54
↓ 2 callersMethodtake_level
( self, lock: SoftReadWriteLock, mode: Mode, holder: int, compromise: LeaseCompromise | None )
src/filelock/_soft/_read_write/_hold.py:161
↓ 2 callersFunctionthird
()
tests/async_lock/test_transitions.py:99
↓ 2 callersFunctiontry_set_delete_disposition
(handle: int, *, published: bool = False)
src/filelock/_filesystem/_windows/_handles.py:383
↓ 2 callersFunctionunlink_path
(path: str)
src/filelock/_filesystem/_exchange.py:225
↓ 2 callersFunctionunlink_private_record_once
( # pragma: win32 no cover directory_ref: tuple[str, int | None], private_name: str )
src/filelock/_soft/_strict/_directories.py:289
↓ 2 callersFunctionunlink_relative
(directory_ref: tuple[str, int | None], name: str)
src/filelock/_soft/_strict/_publication.py:252
↓ 2 callersFunctionunlock_fd
(_fd: int)
src/filelock/_native/_unix.py:60
↓ 2 callersFunctionunregister_owned_descriptor
(token: int)
src/filelock/_core/_fork.py:128
↓ 2 callersFunctionvalidate_intervals
(heartbeat_interval: float, stale_threshold: float | None, poll_interval: float)
src/filelock/_soft/_read_write/_heartbeat.py:56
↓ 2 callersFunctionwait
()
tests/soft/read_write/test_async_executor.py:94
↓ 2 callersFunctionwrite
()
tests/soft/read_write/test_async.py:204
↓ 2 callersFunctionwrite
()
tests/sqlite/test_async_contention.py:33
↓ 2 callersFunctionwriters_peak_inside
(lock: AsyncReadWriteLock)
tests/sqlite/test_async_contention.py:30
↓ 1 callersMethod__aenter__
Acquire the lock. :returns: the lock object
src/filelock/_async_lock/_lock.py:200
↓ 1 callersMethod__call__
( # ruff:ignore[too-many-arguments] # forwards the public constructor's documented parameters cls: t
src/filelock/_core/_singleton.py:63
↓ 1 callersMethod__enter__
(self)
src/filelock/_core/_lock.py:154
↓ 1 callersMethod__init__
(self)
src/filelock/_soft/_lease.py:342
↓ 1 callersMethod__init__
( # ruff:ignore[too-many-arguments] # public constructor: one parameter per documented lock option s
src/filelock/_soft/_read_write/_async.py:54
↓ 1 callersMethod__init__
(self)
src/filelock/_sqlite/_lock.py:44
↓ 1 callersMethod__init__
( # ruff:ignore[too-many-arguments] # public constructor: one parameter per documented lock option s
src/filelock/_sqlite/_async.py:46
↓ 1 callersMethod__str__
(self)
src/filelock/_core/_errors.py:100
↓ 1 callersMethod_abandon_take_over
(self, fd: int, aside: str, *, put_back: bool)
src/filelock/_soft/_exclusive/_recovery.py:222
↓ 1 callersMethod_acquire
(self)
src/filelock/_core/_acquire.py:205
↓ 1 callersMethod_acquire
( self, mode: Literal["read", "write"], timeout: float, *, blocking: b
src/filelock/_core/_acquire.py:370
↓ 1 callersFunction_acquire_during_transition
( lock: StrictSoftFileLock, admission: Literal["timeout", "blocking", "cancel"], )
tests/soft/strict/test_publication.py:297
↓ 1 callersFunction_acquire_for_mode
(lock: BaseFileLock, mode: Literal["finite", "nonblocking"])
tests/core/test_registry.py:77
↓ 1 callersFunction_acquire_for_mode
(lock: BaseAsyncFileLock, mode: Literal["finite", "nonblocking"])
tests/async_lock/test_owners.py:107
↓ 1 callersMethod_acquire_level
( self, state: FileLockContext, levels_before: int, canonical_path: str, wait: AcquireWait )
src/filelock/_core/_acquire.py:96
↓ 1 callersMethod_acquire_native
(self)
src/filelock/_native/_unix.py:152
↓ 1 callersFunction_acquire_shared_with
(lock: FileLock, admission: Literal["timeout", "blocking", "cancel"])
tests/core/test_admission.py:171
↓ 1 callersMethod_acquire_transaction
( self, mode: Literal["read", "write"], timeout: float, holder: int, *
src/filelock/_sqlite/_lock.py:297
↓ 1 callersMethod_acquire_transaction_lock
( self, *, blocking: bool, timeout: float, cancel_check: Callable[[], bool] | None )
src/filelock/_sqlite/_lock.py:285
↓ 1 callersMethod_acquire_with_admission
( self, *, blocking: bool, cancel_check: Callable[[], bool] | None, ti
src/filelock/_async_lock/_lock.py:257
↓ 1 callersMethod_admit
( # ruff:ignore[too-many-arguments] # the acquire's state, passed through under the table lock self,
src/filelock/_async_lock/_owners.py:123
↓ 1 callersMethod_adopt_created_file
(self, fd: int, created: list[int])
src/filelock/_native/_unix.py:337
↓ 1 callersMethod_advance
(self, key: _SweepKey)
src/filelock/_sqlite/_links.py:65
↓ 1 callersFunction_assert_descriptor_closed
(fd: int)
tests/core/test_fork_descriptors.py:50
↓ 1 callersMethod_async_poll_until_acquired
( self, *, blocking: bool, cancel_check: Callable[[], bool] | None, ti
src/filelock/_async_lock/_acquire.py:50
↓ 1 callersFunction_attempt
(action: Callable[[], object])
tasks/verify_filesystem.py:154
↓ 1 callersMethod_attempt
(self)
src/filelock/_soft/_read_write/_participant.py:93
↓ 1 callersMethod_attempt_acquire
( self, mode: Literal["read", "write"], timeout: float, *, blocking: b
src/filelock/_sqlite/_lock.py:206
↓ 1 callersFunction_attempt_claim_read
( lock_file: str, directory_ref: tuple[str, int | None], name: str )
src/filelock/_soft/_strict/_scan.py:211
↓ 1 callersMethod_attempt_doorway
(self, claim_directory: Path)
src/filelock/_soft/_strict/_lock.py:203
↓ 1 callersMethod_attempt_open
(self, path: str, flags: int)
src/filelock/_soft/_read_write/_storage.py:129
↓ 1 callersFunction_build
(name: str, lock_path: str)
tasks/verify_filesystem.py:172
↓ 1 callersFunction_build_record
(fields: dict[str, str])
src/filelock/_soft/_records.py:107
↓ 1 callersFunction_build_with_explicit_defaults
(kind: Literal["sync", "async"], lock_path: str)
tests/core/test_subclass_options.py:148
↓ 1 callersFunction_busy_error
()
tests/sqlite/test_async_release_cancellation.py:211
↓ 1 callersMethod_call
(self, fail_with: BaseException | None)
tests/soft/read_write/async_helpers.py:84
↓ 1 callersFunction_can_symlink
()
tasks/deny_symlink.py:151
↓ 1 callersFunction_cancellation_latency
(root: Path)
tasks/benchmark.py:108
↓ 1 callersFunction_change_singleton_option
( option: Literal["hook", "policy"], lock_path: str, hook: Callable[[int], None], )
tests/core/test_subclass_options.py:353
↓ 1 callersMethod_check_acquisition_state
(self, state: FileLockContext)
src/filelock/_core/_acquire.py:51
↓ 1 callersFunction_check_cached_options
(instance: BaseFileLock, options: LockOptions, extras: dict[str, ExtraValue])
src/filelock/_core/_singleton.py:147
↓ 1 callersFunction_check_construction_pid
(construction_pid: int)
src/filelock/_sqlite/_fork.py:137
↓ 1 callersFunction_check_file_read_write
(txt_file: Path)
tests/core/test_threading.py:137
↓ 1 callersMethod_check_owner
(self, lock: SoftReadWriteLock, thread_id: int)
src/filelock/_soft/_read_write/_hold.py:195
↓ 1 callersFunction_claim_exists_on_server
(lock_file: str, directory_ref: tuple[str, int | None], name: str)
src/filelock/_soft/_strict/_scan.py:275
↓ 1 callersFunction_close_and_unlink_private_record
( directory_ref: tuple[str, int | None], private_name: str, private_fd: int, private_identity:
src/filelock/_soft/_strict/_publication.py:227
↓ 1 callersFunction_collects_classes
()
tasks/capabilities.py:103
↓ 1 callersMethod_commit
( self, latest: Snapshot, writer: str | None, readers: frozenset[str], stale: frozenset[str] )
src/filelock/_soft/_read_write/_participant.py:150
↓ 1 callersMethod_compact_through
(self, expired: int, newest: int)
src/filelock/_soft/_read_write/_generations.py:208
↓ 1 callersMethod_configure_and_begin
( self, connection: ForkSafeConnection, mode: Literal["read", "write"], timeou
src/filelock/_sqlite/_transactions.py:165
↓ 1 callersFunction_connect_through_descriptor
( # pragma: win32 no cover database: str, *, factory: type[ForkSafeConnection], timeout: float, owner: in
src/filelock/_sqlite/_connection.py:131
↓ 1 callersFunction_contains_exception
(error: BaseException, target: BaseException | None)
src/filelock/_core/_errors.py:285
↓ 1 callersFunction_contention
(root: Path)
tasks/benchmark.py:149
↓ 1 callersFunction_count_overlaps
(per_process: list[list[tuple[float, float]]])
tasks/verify_filesystem.py:94
← previousnext →501–600 of 3,548, ranked by callers