MCPcopy Create free account

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

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

Method__init__
(self, *, mode: Literal["read", "write"])
tests/soft/read_write/test_participant_model.py:327
Method__init__
(self, *args: Any, **kwargs: Any)
tests/soft/read_write/test_lock_singleton.py:125
Method__init__
(self, *args: Any, **kwargs: Any)
tests/soft/read_write/test_lock_singleton.py:142
Method__init__
(self, *, after_call_ran: bool)
tests/async_lock/cancellation.py:83
Method__init__
(self, lock_file: Path, *, is_singleton: bool)
tests/async_lock/test_finalization.py:156
Method__init__
( self, coroutine: Coroutine[None, None, _T], cancellation_seen: threading.Event,
tests/async_lock/test_executor.py:71
Method__init_subclass__
Give each lock subclass its own singleton registry and lock.
src/filelock/_core/_lock.py:77
Method__init_subclass__
(cls, **kwargs: object)
src/filelock/_soft/_read_write/_lock.py:186
Method__init_subclass__
(cls)
src/filelock/_sqlite/_lock.py:96
Method__init_subclass__
(cls, *, label: str, **kwargs: object)
tests/soft/read_write/test_lock_singleton.py:102
Method__reduce__
( self, )
src/filelock/_core/_errors.py:27
Method__reduce__
(self)
src/filelock/_core/_errors.py:67
Method__reduce__
( self, )
src/filelock/_core/_errors.py:105
Method__repr__
(self)
src/filelock/_core/_errors.py:45
Method__repr__
(self)
tests/soft/test_lease.py:188
Method__setitem__
(self, key: object, item: int)
tests/core/test_registry.py:267
Method__str__
(self)
src/filelock/_core/_errors.py:38
Method__str__
(self)
src/filelock/_soft/_strict/_claims.py:141
Function_abort_forked_sqlite_transition
()
src/filelock/_sqlite/_fork.py:256
Function_acquire
(lock_type: type[SoftFileLock], lock: Path)
tests/soft/exclusive/test_recovery_claim.py:273
Method_acquire
(self)
src/filelock/_native/_unix.py:42
Method_acquire
(self)
src/filelock/_native/_windows.py:56
Method_acquire
(self)
src/filelock/_soft/_lease.py:157
Method_acquire
(self)
src/filelock/_soft/_exclusive/_publication.py:40
Method_acquire
(self)
src/filelock/_soft/_strict/_lock.py:128
Method_acquire
(self)
tests/core/test_subclass_options.py:61
Method_acquire
(self)
tests/core/test_subclass_options.py:115
Method_acquire
(self)
tests/core/test_subclass_options.py:194
Method_acquire
(self)
tests/core/test_subclass_options.py:254
Method_acquire
(self)
tests/core/test_subclass_options.py:328
Method_acquire
(self)
tests/core/test_subclass_options.py:371
Method_acquire
(self)
tests/core/test_fork_construction.py:361
Method_acquire
(self)
tests/core/test_fork_async_backends.py:50
Method_acquire
(self)
tests/core/test_fork_backends.py:42
Method_acquire
(self)
tests/core/test_fork_backends.py:303
Method_acquire
(self)
tests/core/test_fork_coordination.py:300
Method_acquire
(self)
tests/core/test_fork_registries.py:36
Method_acquire
(self)
tests/core/test_fork_audit.py:56
Method_acquire
(self)
tests/core/test_fork_ownership.py:347
Method_acquire
(self)
tests/async_lock/test_context_errors.py:189
Method_acquire
(self)
tests/async_lock/test_acquire_cancellation.py:35
Method_acquire
(self)
tests/async_lock/test_backend_calls.py:56
Method_acquire
(self)
tests/async_lock/test_backend_calls.py:80
Method_acquire
(self)
tests/async_lock/test_release_cancellation.py:99
Method_acquire
(self)
tests/async_lock/test_release_cancellation.py:357
Method_acquire
(self)
tests/async_lock/test_acquire_rollback.py:23
Function_acquire_cancelled_by_check
(lock: AsyncFileLock)
tests/async_lock/test_admission.py:41
Function_acquire_finite_deadline
(lock: AsyncFileLock)
tests/async_lock/test_admission.py:36
Method_acquire_level_of
( self, holder: int, mode: Literal["read", "write"], timeout: float, *
src/filelock/_core/_acquire.py:357
Function_acquire_nonblocking
(lock: AsyncFileLock)
tests/async_lock/test_admission.py:31
Function_acquire_relative_lock
(lock_type: type[BaseFileLock], polling: threading.Event, timeout: float = 0.2)
tests/core/test_relative_paths.py:61
Function_acquire_timing_out
( # pragma: win32 no cover lock_type: type[SoftFileLock], lock: Path, outcomes: list[bool] )
tests/soft/exclusive/test_recovery_claim.py:319
Method_acquire_with_fork_tracking_async
(self)
src/filelock/_async_lock/_acquire.py:137
Method_admit
(self, mode: Literal["read", "write"], timeout: float, *, blocking: bool)
src/filelock/_async_lock/_backends.py:136
Function_assert_owned_executor_is_shut_down
(executor: Executor)
tests/sqlite/test_async_release_cancellation.py:68
Function_assert_supplied_executor_runs
(executor: Executor)
tests/sqlite/test_async_release_cancellation.py:58
Function_audit_fork_safety
( # pragma: no cover - CPython disables tracing while Python audit hooks run event: str, _args: Unuse
src/filelock/_core/_fork.py:344
Function_block_executor
(executor_started: threading.Event, release_executor: threading.Event)
tests/sqlite/test_async_cancellation.py:63
Function_block_executor
(executor_started: threading.Event, release_executor: threading.Event)
tests/async_lock/test_acquire_cancellation.py:195
Method_break_expired_and_acquire
(self)
src/filelock/_async_lock/_acquire.py:219
Function_cancel_queued_read_write_acquire
(lock_file: str, cancel_caller: bool, canceled: Synchronized[bool])
tests/sqlite/test_async_cancellation.py:87
Method_check_after_enter
(self)
src/filelock/_async_lock/_backends.py:214
Method_claim
(self)
src/filelock/_soft/_lease.py:123
Method_claim_directory
(self)
src/filelock/_soft/_strict/_lock.py:104
Method_cleanup_all_instances
()
src/filelock/_soft/_read_write/_lock.py:481
Function_close_eio
(fd: int)
tests/native/test_unix_open.py:117
Function_collect_garbage
()
tests/conftest.py:107
Method_con
(self)
src/filelock/_sqlite/_transactions.py:63
Method_deadlock_scope
()
src/filelock/_async_lock/_lock.py:305
Method_descriptors_for_fork
(self)
src/filelock/_core/_state.py:378
Function_enter_lock
( lock: BaseAsyncFileLock, )
tests/async_lock/context.py:17
Function_enter_proxy
(lock: BaseAsyncFileLock)
tests/async_lock/context.py:24
Function_exchange_call
(source: bytes, target: bytes, flags: int)
tests/soft/exclusive/test_recovery_takeover.py:324
Function_exchange_call
(source: bytes, target: bytes, flags: int)
tests/filesystem/test_exchange_recovery.py:264
Function_fail_probe_removal
(mocker: MockerFixture)
tests/soft/strict/test_scan_reclaim.py:164
Function_fail_probe_stamp
(mocker: MockerFixture)
tests/soft/strict/test_scan_reclaim.py:153
Function_failing_on_acquired
(_fd: int)
tests/core/test_on_acquired.py:136
Function_failing_on_acquired
(_fd: int)
tests/async_lock/test_backend_calls.py:179
Function_finalize_unreachable
(holder: ref[FinalizerState], cls: type[BaseFileLock], reference: ref[BaseFileLock])
src/filelock/_core/_shutdown.py:55
Function_hammer
(backend: str, path: str)
tasks/benchmark.py:166
Function_hammer
(name: str, lock_path: str)
tasks/verify_filesystem.py:109
Function_hard_link
(path: Path)
tests/sqlite/test_connection.py:67
Function_hold_file_lock
(lock_file: str, holder_started: threading.Event, finish_holder: threading.Event)
tests/async_lock/cancellation.py:69
Function_hold_relative_lock
(polling: threading.Event, acquired: threading.Event, release: threading.Event)
tests/soft/strict/test_directories.py:89
Function_hold_until
(path: str, acquired: EventType, release: EventType)
tasks/benchmark.py:141
Method_holds_level_of
(self, holder: int, /)
src/filelock/_core/_acquire.py:384
Method_holds_level_of
(self, holder: int)
src/filelock/_soft/_read_write/_lock.py:469
Method_inherited
(self)
src/filelock/_sqlite/_transactions.py:162
Method_inherited
(self)
src/filelock/_sqlite/_async.py:117
Method_inherited
(self)
src/filelock/_async_lock/_backends.py:249
Function_init_then_fork
( self: _Sub, lock_file: str | os.PathLike[str], timeout: float = -1, *,
tests/sqlite/test_lock_settings.py:177
Function_interrupt_waiting_writer
(lock_file: str)
tests/sqlite/test_lock_contention.py:244
Method_joinable
(self, mode: Literal["read", "write"], /)
src/filelock/_soft/_read_write/_async.py:177
Method_joinable
(self, _mode: Literal["read", "write"], /)
src/filelock/_async_lock/_backends.py:206
Function_late_reader
(lock_file: str, announced: EventType, entries: Synchronized[int])
tests/sqlite/test_lock_contention.py:207
Method_leave_backend
(self)
src/filelock/_async_lock/_backends.py:197
Function_leave_marker
(marker: Path)
tests/soft/exclusive/test_marker.py:198
Function_leave_pending_doorway_here
( # pragma: needs collected-finalization lock: StrictSoftFileLock, mocker: MockerFixture )
tests/soft/strict/test_publication_withdrawal_pending.py:120
Method_lock_path
(self)
src/filelock/_core/_state.py:252
Method_marker_is_live
(cls, content: str | None, breaker_pid: int)
src/filelock/_soft/_exclusive/_marker.py:72
← previousnext →1,001–1,100 of 3,548, ranked by callers