MCPcopy Create free account

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

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

↓ 1 callersFunctionacquire_other
()
tests/async_lock/test_owners.py:171
↓ 1 callersFunctionacquire_second
()
tests/async_lock/test_admission.py:45
↓ 1 callersFunctionacquire_then_finish
()
tests/sqlite/test_async_release_cancellation.py:114
↓ 1 callersFunctionacquire_then_release
()
tests/sqlite/test_async_release_cancellation.py:84
↓ 1 callersMethodadopt
(self, database: str, claimed: list[_Probe])
src/filelock/_sqlite/_connection.py:285
↓ 1 callersFunctionbody
()
tasks/capabilities.py:151
↓ 1 callersFunctionbounded_schema
(connection: sqlite3.Connection, database: str)
src/filelock/_sqlite/_connection.py:177
↓ 1 callersMethodbreak_lock
Forcibly break the lock by removing the lock file, regardless of who holds it.
src/filelock/_soft/_exclusive/_lock.py:54
↓ 1 callersMethodcall
(lock: SoftReadWriteLock, *args: _Params.args, **kwargs: _Params.kwargs)
tests/soft/read_write/async_helpers.py:85
↓ 1 callersFunctioncancel_queued_acquire
()
tests/sqlite/test_async_cancellation.py:88
↓ 1 callersFunctioncapget
(_version: ctypes.Array[ctypes.c_uint32], caps: ctypes.Array[ctypes.c_uint32])
tests/filesystem/test_ownership.py:128
↓ 1 callersFunctioncapture_awaitable
(awaitable: Awaitable[_T])
src/filelock/_async_lock/_executor.py:156
↓ 1 callersFunctioncheck_mode
(mode: int, cls_name: str)
src/filelock/_core/_settings.py:162
↓ 1 callersFunctionchild
()
tests/soft/test_lease.py:93
↓ 1 callersFunctionclock
()
tests/soft/read_write/test_participant.py:68
↓ 1 callersFunctionclose
(fd: int)
tests/conftest.py:138
↓ 1 callersFunctionclose_a_pipe
()
tests/soft/exclusive/test_publication_cleanup.py:302
↓ 1 callersFunctionclose_a_pipe
()
tests/async_lock/test_close_errors.py:160
↓ 1 callersFunctionclose_on_another_loop
()
tests/async_lock/test_read_write_wait.py:252
↓ 1 callersFunctionconnect
(database: str, *, factory: type[ForkSafeConnection], timeout: float)
src/filelock/_sqlite/_connection.py:62
↓ 1 callersFunctioncreate_deletable_fd
Create a file with delete access for publication and cleanup. :param path: private claim name :returns: read/write descripto
src/filelock/_filesystem/_windows/_handles.py:409
↓ 1 callersFunctioncreate_exclusive_non_reparse_fd
Create a marker without replacing an existing name. :param path: marker file name :param opened: empty list that receives th
src/filelock/_filesystem/_windows/_oplocks.py:155
↓ 1 callersFunctiondecorated_method
()
tests/core/test_lock.py:282
↓ 1 callersFunctiondefer_singleton_release
(lock: BaseFileLock)
src/filelock/_core/_shutdown.py:39
↓ 1 callersFunctionensure_claim_directory
(lock_file: str, directory: Path, mode: int)
src/filelock/_soft/_strict/_directories.py:99
↓ 1 callersMethodexpect
(self)
tests/soft/read_write/test_participant_model.py:101
↓ 1 callersFunctionfail_before_start
()
tests/sqlite/test_transactions_release.py:112
↓ 1 callersFunctionfail_in_context
()
tests/sqlite/test_async_release_cancellation.py:157
↓ 1 callersFunctionfail_in_context
()
tests/async_lock/test_executor.py:164
↓ 1 callersMethodfinish
(self)
tests/soft/read_write/test_participant_model.py:127
↓ 1 callersMethodfunctions
( self, )
src/filelock/_sqlite/_fork.py:155
↓ 1 callersFunctiongate
()
tasks/capabilities.py:147
↓ 1 callersMethodgrant
(self, mode: Literal["read", "write"], holder: int)
src/filelock/_sqlite/_lock.py:50
↓ 1 callersFunctiongrouped_errors
( error: BaseException, message: str, marker: tuple[str, _MarkerValue] )
src/filelock/_core/_errors.py:133
↓ 1 callersFunctionheld_at_exit
(name: str, before_exit: str)
tests/test_lazy_import.py:197
↓ 1 callersFunctionhold
()
tests/async_lock/test_transitions.py:195
↓ 1 callersFunctionhold_reports_foreign_identity
(mocker: MockerFixture)
tests/soft/exclusive/recovery_helpers.py:58
↓ 1 callersFunctionholder_pid
()
tests/native/test_unix_fallback.py:198
↓ 1 callersFunctionidentity_of_fd
Identify the file held by a descriptor. :param fd: open file descriptor :returns: volume serial number and file index
src/filelock/_filesystem/_windows/_handles.py:347
↓ 1 callersFunctioninstall_hooks
()
src/filelock/_sqlite/_fork.py:244
↓ 1 callersFunctioninvalidated
(entries: Iterator[os.DirEntry[str]])
tests/sqlite/test_links_sweep.py:164
↓ 1 callersFunctionis_unlinked
Check whether the name is absent or pending deletion. :param path: name to inspect :returns: whether the file was unlinked
src/filelock/_filesystem/_windows/_handles.py:307
↓ 1 callersMethodleave_one_level
(self, lock: SoftReadWriteLock, thread_id: int)
src/filelock/_soft/_read_write/_hold.py:186
↓ 1 callersMethodleave_one_level
(self, thread_id: int)
src/filelock/_sqlite/_lock.py:62
↓ 1 callersFunctionlink_beside
( # pragma: needs posix-hard-link database: str, identity: DatabaseIdentity, owner: int )
src/filelock/_sqlite/_links.py:125
↓ 1 callersFunctionlink_beside_on_windows
(database: str, identity: DatabaseIdentity, pin: ExitStack)
src/filelock/_sqlite/_links.py:305
↓ 1 callersFunctionlink_no_replace
( # pragma: win32 no cover directory: Path, source_name: str, destination_name: str )
src/filelock/_soft/_strict/_publication.py:346
↓ 1 callersFunctionlock_fd_nonblocking
(fd: int)
src/filelock/_native/_windows.py:89
↓ 1 callersFunctionmain
()
tasks/deny_symlink.py:41
↓ 1 callersFunctionmain
()
tasks/verify_filesystem.py:46
↓ 1 callersFunctionmain
()
tasks/capability/assert_fallback.py:14
↓ 1 callersFunctionmark_delete_disposition
Remove a published name or schedule a private file for deletion on close. :param handle: Windows handle with delete access :
src/filelock/_filesystem/_windows/_handles.py:363
↓ 1 callersFunctionmeasure
()
tasks/benchmark.py:116
↓ 1 callersFunctionmock_legacy_volume
(mocker: MockerFixture, failure: str | None = None)
tests/soft/strict/filesystem_faults.py:93
↓ 1 callersMethodnest
(self, mode: Literal["read", "write"], holder: int)
src/filelock/_sqlite/_lock.py:57
↓ 1 callersMethodnext_batch
(self, kind: str, names: list[str])
src/filelock/_soft/_read_write/_sweep.py:57
↓ 1 callersFunctionopen_deletable_for_reading
Read a claim without blocking its deletion. :param path: claim file name :returns: read-only descriptor :raises OSEr
src/filelock/_filesystem/_windows/_handles.py:288
↓ 1 callersFunctionopen_for_delete_without_oplock_wait
Request delete access without waiting for an oplock break. :param path: file to open :returns: descriptor with delete access
src/filelock/_filesystem/_windows/_oplocks.py:145
↓ 1 callersFunctionopen_or_create_sentinel
( lock_file: str, path: Path, mode: int, unchanged_for: Callable[[os.stat_result], float] )
src/filelock/_soft/_strict/_sentinel.py:57
↓ 1 callersFunctionoplock_wait_cancelled
Recognize the Windows error produced by a canceled I/O request. :param error: exception from the blocked operation :returns:
src/filelock/_filesystem/_windows/_oplocks.py:118
↓ 1 callersMethodoverwrite
(self, path: str, data: bytes, identity: tuple[int, int], header: bytes)
tests/soft/read_write/test_participant_model.py:289
↓ 1 callersFunctionparse_claim
( lock_file: str, name: str, name_parts: tuple[StrictSoftFileClaimState, str], record: bytes,
src/filelock/_soft/_strict/_claims.py:67
↓ 1 callersFunctionqueued
()
tests/sqlite/test_async_contention.py:155
↓ 1 callersMethodraise_if_poisoned
(self, path: pathlib.Path)
src/filelock/_sqlite/_fork.py:192
↓ 1 callersFunctionread
()
tests/sqlite/test_async_contention.py:59
↓ 1 callersMethodread_lock
Hold the lock until the context exits. See :meth:`acquire_read` for acquisition errors. :param timeout: seconds to wait, or ``None``
src/filelock/_soft/_read_write/_async.py:94
↓ 1 callersFunctionrelease
()
tests/async_lock/test_release_cancellation.py:231
↓ 1 callersFunctionrelease
()
tests/async_lock/test_owners.py:223
↓ 1 callersMethodrelease
( self, *, force: bool, lock_file: str, via: Hashable, leave:
src/filelock/_async_lock/_owners.py:208
↓ 1 callersFunctionremove_after_inspection
(inspect: Inspect)
tests/soft/strict/test_scan.py:173
↓ 1 callersFunctionremove_own_file
(lock_file: str, fd: int)
src/filelock/_filesystem/_exchange.py:45
↓ 1 callersFunctionreplace_directory
(path: Path, remove: Callable[[], None])
tests/sqlite/test_connection_windows.py:257
↓ 1 callersFunctionresolve_close_error_policy
(policy: str)
src/filelock/_core/_settings.py:184
↓ 1 callersFunctionresolve_context_error_policy
(policy: str)
src/filelock/_core/_settings.py:177
↓ 1 callersFunctionresolve_on_acquired
( on_acquired: Callable[[int], None] | None, *, supported: bool, cls_name: str )
src/filelock/_core/_settings.py:199
↓ 1 callersFunctionresolve_preserve_lock_file
(*, preserve: bool, supported: bool, cls_name: str)
src/filelock/_core/_settings.py:191
↓ 1 callersMethodretain
(self, fd: int, claimed: list[_Probe])
src/filelock/_sqlite/_connection.py:299
↓ 1 callersMethodretain_link
(self, directory: LinkDirectory | None)
src/filelock/_sqlite/_connection.py:242
↓ 1 callersMethodretain_temporary
(self, keys: set[str])
src/filelock/_soft/_read_write/_sweep.py:66
↓ 1 callersMethodretain_until_close
(self, directory: LinkDirectory | None, probe: _Probe)
src/filelock/_sqlite/_connection.py:245
↓ 1 callersMethodretire
( self, via: Hashable | None, *, leave: Callable[[], asyncio.Future[BackendOut
src/filelock/_async_lock/_owners.py:251
↓ 1 callersMethodretire_stopped_loops
(self)
src/filelock/_async_lock/_owners.py:315
↓ 1 callersFunctionretire_task_holds_at_exit
(backend: ReadWriteBackend)
src/filelock/_async_lock/_owners.py:43
↓ 1 callersFunctionrun
()
tests/sqlite/test_async_executor.py:124
↓ 1 callersFunctionrun_context
()
tests/async_lock/test_acquire_rollback.py:214
↓ 1 callersFunctionsleep
(seconds: float)
tests/sqlite/test_lock.py:58
↓ 1 callersFunctionstart_acquire
()
tests/async_lock/test_executor.py:57
↓ 1 callersFunctionstart_context
()
tests/async_lock/test_executor.py:168
↓ 1 callersFunctionstat
(current: Path, *, follow_symlinks: bool = True)
tests/identity/conftest.py:44
↓ 1 callersFunctionstatfs
(_fd: int, info: ctypes.Array[ctypes.c_long])
tests/filesystem/test_ownership.py:124
↓ 1 callersMethodstep
(self)
tests/soft/read_write/test_participant_model.py:133
↓ 1 callersFunctionstop
(_fd: int)
tests/core/test_on_acquired.py:228
↓ 1 callersMethodsupported
( self, cls_name: str, params: dict[str, LockInitValue | ExtraValue] )
src/filelock/_core/_settings.py:272
↓ 1 callersFunctionswap_after_the_inspection
(inspect: Inspect)
tests/soft/strict/test_windows_directories.py:57
↓ 1 callersFunctiontarget
()
tests/soft/read_write/test_lock_contention.py:197
↓ 1 callersFunctiontask_owners_for
(sync_lock: ReadWriteBackend)
src/filelock/_async_lock/_owners.py:48
↓ 1 callersFunctiontouch
(name: str, *, fd: int)
src/filelock/_filesystem/_files.py:95
↓ 1 callersFunctionunlink_owner_path_result
( path: str, context: FileLockContext, *, deadline: float | None )
src/filelock/_soft/_strict/_publication.py:324
↓ 1 callersFunctionunlock_fd
(fd: int)
src/filelock/_native/_windows.py:101
↓ 1 callersFunctionunpin_directory
Allow renames after the final directory pin closes. :param handle: handle returned by pin_directory
src/filelock/_filesystem/_windows/_directories.py:122
← previousnext →801–900 of 3,548, ranked by callers