MCPcopy Create free account

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

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

↓ 2 callersMethod_validate_reentrant
(self, mode: _Mode)
src/filelock/_soft_rw/_sync.py:499
↓ 2 callersMethod_wait_for
( self, predicate: Callable[[], bool], *, deadline: float | None, bloc
src/filelock/_soft_rw/_sync.py:613
↓ 2 callersMethod_wait_for_predecessor
( predecessor: ConcurrentFuture[None], *, blocking: bool, cancel_check: Callab
src/filelock/_async.py:84
↓ 2 callersFunction_write_foreign_claim
(claims: Path, token: str, state: str = "held")
tests/test_strict_soft_failures.py:1454
↓ 2 callersMethodacquire_write
Acquire an exclusive write lock. See :meth:`SoftReadWriteLock.acquire_write` for the two-phase writer-preferring semantics. The bloc
src/filelock/_soft_rw/_async.py:165
↓ 2 callersMethodbreak_lock
Forcibly break the lock by removing the lock file, regardless of who holds it.
src/filelock/_soft.py:145
↓ 2 callersFunctionbuild
()
tasks/capabilities.py:96
↓ 2 callersFunctioncapture
(fd: int)
tests/conftest.py:67
↓ 2 callersFunctionencode_marker
Render an owner record as the bytes a protocol 2 marker holds.
src/filelock/_marker.py:98
↓ 2 callersFunctionfirst
()
tests/test_async_transition_gate.py:19
↓ 2 callersFunctionget_fcntl
()
tests/async_filelock_cancellation_helpers.py:28
↓ 2 callersFunctionmake_ro
(path: Path)
tests/test_filelock.py:89
↓ 2 callersFunctionparse_marker
Return the owner a protocol 2 marker names, or ``None`` when the record is malformed or protocol 1.
src/filelock/_marker.py:110
↓ 2 callersMethodread_lock
Context manager that acquires and releases a shared read lock. Falls back to instance defaults for *timeout* and *blocking* when ``N
src/filelock/_soft_rw/_sync.py:224
↓ 2 callersMethodrelease
Release the file lock. The lock is only completely released when the lock counter reaches 0. The lock file itself may be deleted auto
src/filelock/asyncio.py:460
↓ 2 callersFunctionsecond
()
tests/test_async_transition_gate.py:26
↓ 2 callersFunctionstart_file_lock_holder
(lock_file: str)
tests/async_filelock_cancellation_helpers.py:48
↓ 2 callersMethodwrite_lock
Context manager that acquires and releases an exclusive write lock. Falls back to instance defaults for *timeout* and *blocking* whe
src/filelock/_soft_rw/_sync.py:244
↓ 1 callersMethod__call__
( # ruff:ignore[too-many-arguments] # forwards the public constructor's documented parameters cls: t
src/filelock/_api.py:345
↓ 1 callersMethod__del__
(self)
src/filelock/_read_write.py:470
↓ 1 callersMethod__del__
(self)
tasks/capabilities.py:74
↓ 1 callersMethod__init__
(self)
src/filelock/_api.py:1516
↓ 1 callersMethod__init__
(self, lock_file: str)
src/filelock/_error.py:7
↓ 1 callersMethod__str__
(self)
src/filelock/_error.py:49
↓ 1 callersMethod_acquire
If the file lock could be acquired, self._context.lock_file_fd holds the file descriptor of the lock file.
src/filelock/_api.py:1422
↓ 1 callersMethod_acquire
(self)
src/filelock/_unix.py:20
↓ 1 callersFunction_acquire_during_transition
( lock: StrictSoftFileLock, admission: Literal["timeout", "blocking", "cancel"], )
tests/test_strict_soft_races.py:290
↓ 1 callersFunction_acquire_for_mode
(lock: BaseFileLock, mode: Literal["finite", "nonblocking"])
tests/test_filelock.py:1448
↓ 1 callersFunction_acquire_for_mode
(lock: BaseAsyncFileLock, mode: Literal["finite", "nonblocking"])
tests/test_async_filelock.py:643
↓ 1 callersMethod_acquire_native
(self)
src/filelock/_unix.py:74
↓ 1 callersMethod_acquire_reader_slot
( self, token: str, *, deadline: float | None, blocking: bool, )
src/filelock/_soft_rw/_sync.py:587
↓ 1 callersMethod_acquire_transaction_lock
(self, *, blocking: bool, timeout: float)
src/filelock/_read_write.py:701
↓ 1 callersMethod_acquire_with_admission
( self, *, blocking: bool, cancel_check: Callable[[], bool] | None, ti
src/filelock/asyncio.py:314
↓ 1 callersMethod_acquire_with_fork_tracking
(self)
src/filelock/_api.py:1275
↓ 1 callersMethod_acquire_writer_slot
( self, token: str, *, deadline: float | None, blocking: bool, )
src/filelock/_soft_rw/_sync.py:519
↓ 1 callersMethod_apply_explicit_mode
(self, fd: int)
src/filelock/_unix.py:158
↓ 1 callersFunction_assert_descriptor_closed
(fd: int)
tests/test_fork_ownership.py:568
↓ 1 callersFunction_async_fork_script
()
tests/test_read_write_fork.py:945
↓ 1 callersMethod_async_poll_until_acquired
( self, *, blocking: bool, cancel_check: Callable[[], bool] | None, ti
src/filelock/asyncio.py:350
↓ 1 callersFunction_attempt
(action: Callable[[], object])
tasks/verify_filesystem.py:148
↓ 1 callersFunction_attempt_claim_read
(lock_file: str, directory: Path, name: str)
src/filelock/_strict.py:358
↓ 1 callersMethod_attempt_doorway
(self, claim_directory: Path, sentinel_fd: int, sentinel_identity: tuple[int, int])
src/filelock/_strict.py:139
↓ 1 callersMethod_break_stale_readers
(self, now: float)
src/filelock/_soft_rw/_sync.py:689
↓ 1 callersFunction_build
(name: str, lock_path: str)
tasks/verify_filesystem.py:168
↓ 1 callersFunction_build_record
(fields: dict[str, str])
src/filelock/_marker.py:123
↓ 1 callersFunction_build_with_explicit_defaults
(kind: Literal["sync", "async"], lock_path: str)
tests/test_subclass_options.py:257
↓ 1 callersMethod_call
(self, fail_with: BaseException | None)
tests/soft_rw/test_soft_rw_async.py:70
↓ 1 callersFunction_can_symlink
()
tasks/deny_symlink.py:153
↓ 1 callersFunction_cancellation_latency
(root: Path)
tasks/benchmark.py:121
↓ 1 callersFunction_capture_awaitable
(awaitable: Awaitable[_T])
src/filelock/_async.py:156
↓ 1 callersFunction_capture_call
(func: Callable[[], _T])
src/filelock/_async.py:137
↓ 1 callersFunction_change_singleton_option
( option: Literal["hook", "policy"], lock_path: str, hook: Callable[[int], None], )
tests/test_subclass_options.py:294
↓ 1 callersFunction_check_file_read_write
(txt_file: Path)
tests/test_filelock.py:687
↓ 1 callersFunction_claim_name
(state: StrictSoftFileClaimState, token: str)
src/filelock/_strict.py:434
↓ 1 callersFunction_claim_record
(token: str)
src/filelock/_strict.py:442
↓ 1 callersFunction_claim_token_key
(name: str)
src/filelock/_strict.py:438
↓ 1 callersFunction_close_and_unlink_private_record
( directory_ref: tuple[str, int | None], private_name: str, private_fd: int, private_identity:
src/filelock/_strict.py:516
↓ 1 callersFunction_collects_classes
()
tasks/capabilities.py:94
↓ 1 callersMethod_commit_release_if_released
(self)
src/filelock/asyncio.py:501
↓ 1 callersFunction_concurrent_operation_script
()
tests/test_read_write_fork.py:505
↓ 1 callersMethod_configure_and_begin
( self, mode: Literal["read", "write"], timeout: float, *, blocking: b
src/filelock/_read_write.py:598
↓ 1 callersFunction_connect
(database: str, *, factory: type[_ForkSafeConnection], timeout: float)
src/filelock/_read_write.py:724
↓ 1 callersFunction_construction
(root: Path)
tasks/benchmark.py:77
↓ 1 callersFunction_contains_exception
(error: BaseException, target: BaseException | None)
src/filelock/_api.py:175
↓ 1 callersFunction_contention
(root: Path)
tasks/benchmark.py:163
↓ 1 callersFunction_count_overlaps
(per_process: list[list[tuple[float, float]]])
tasks/verify_filesystem.py:98
↓ 1 callersFunction_crash_while_holding
()
tests/test_strict_soft_recovery.py:99
↓ 1 callersMethod_create_instance
( cls: type[_T], lock_file: str | os.PathLike[str], params: dict[str, _LockInitValue | _ExtraValue]
src/filelock/_api.py:448
↓ 1 callersFunction_ctypes_signature_script
()
tests/test_read_write_fork.py:484
↓ 1 callersFunction_current_process_handle_count
()
tests/test_soft_stale.py:389
↓ 1 callersMethod_deadlock_scope
Execution unit whose own hold would deadlock a new acquire. ``None`` scopes holders to the thread, which the thread-local registry a
src/filelock/_api.py:1193
↓ 1 callersFunction_delivers_audit_events
()
tasks/capabilities.py:156
↓ 1 callersFunction_describe
(error: BaseException)
tasks/verify_filesystem.py:164
↓ 1 callersFunction_descriptor_growth
(root: Path)
tasks/benchmark.py:110
↓ 1 callersMethod_descriptors_for_fork
(self)
src/filelock/_api.py:1165
↓ 1 callersFunction_detach_child_state
( # pragma: forked child descriptors: list[_OwnedDescriptor], pinned_objects: tuple[_ForkResettable,
src/filelock/_api.py:1747
↓ 1 callersFunction_detach_exception_context
(error: BaseException, target: BaseException)
src/filelock/_api.py:270
↓ 1 callersFunction_detach_grouped_contexts
(errors: tuple[BaseException, ...])
src/filelock/_api.py:129
↓ 1 callersFunction_developer_mode
()
tasks/deny_symlink.py:69
↓ 1 callersMethod_do_acquire_inner
( self, mode: Literal["read", "write"], timeout: float, *, blocking: b
src/filelock/_read_write.py:530
↓ 1 callersMethod_do_acquire_inner
( self, mode: _Mode, effective_timeout: float, start: float, *,
src/filelock/_soft_rw/_sync.py:446
↓ 1 callersFunction_dropped_instances_script
()
tests/test_read_write_fork.py:330
↓ 1 callersFunction_dynamic_constructor
()
tests/test_subclass_options.py:309
↓ 1 callersFunction_enforces_file_mode
()
tasks/capabilities.py:199
↓ 1 callersFunction_ensure_protocol_directory
(lock_file: str, directory: Path)
src/filelock/_strict.py:829
↓ 1 callersFunction_enter_fork_transition
(descriptor_owner: _ForkDescriptorOwner | None)
src/filelock/_api.py:1692
↓ 1 callersFunction_environment
()
tasks/benchmark.py:59
↓ 1 callersFunction_exception_graph_contains
(error: BaseException, target: BaseException)
src/filelock/_api.py:208
↓ 1 callersMethod_extend
(config: TConfigurable, option: str, patterns: list[str])
tasks/coverage_pragmas.py:54
↓ 1 callersMethod_fallback_to_soft_lock
(self)
src/filelock/_unix.py:163
↓ 1 callersMethod_finalize_locked_fd
(self, fd: int)
src/filelock/_unix.py:137
↓ 1 callersFunction_finalizes_on_collection
()
tasks/capabilities.py:81
↓ 1 callersFunction_finalizes_on_last_reference
()
tasks/capabilities.py:69
↓ 1 callersFunction_flush_coverage
()
tests/fork_helpers.py:48
↓ 1 callersFunction_fork_at_sqlite_boundary_script
()
tests/test_read_write_fork.py:755
↓ 1 callersFunction_fork_during_sqlite_script
()
tests/test_read_write_fork.py:675
↓ 1 callersFunction_fork_script
()
tests/test_read_write_fork.py:577
↓ 1 callersFunction_gated_locks
()
tasks/verify_filesystem.py:82
↓ 1 callersFunction_grouped_errors
( error: BaseException, message: str, marker: tuple[str, _MarkerValue] )
src/filelock/_api.py:227
↓ 1 callersFunction_has_transient
(error: BaseException)
tasks/verify_filesystem.py:156
← previousnext →201–300 of 1,605, ranked by callers