MCPcopy Create free account

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

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

Functionacquire_in_thread
()
tests/core/test_registry.py:122
Functionacquire_lock
()
tests/core/test_fork_descriptors.py:75
Functionacquire_lock
( lock_file: str, mode: Literal["read", "write"], acquired_event: EventType, release_event: Ev
tests/sqlite/process_support.py:35
Functionacquire_lock_and_crash
(lock_file: str, mode: Literal["read", "write"], acquired_event: EventType)
tests/sqlite/test_lock.py:235
Functionacquire_partial
()
tests/soft/strict/test_publication.py:198
Functionacquire_release
(held: filelock.BaseFileLock = lock)
tasks/benchmark.py:73
Functionacquire_second
()
tests/soft/strict/test_publication.py:233
Functionacquire_then_linger
()
tests/soft/strict/test_publication_withdrawal_pending.py:246
Functionadd_competitor_before_final_scan
(path: int | str)
tests/soft/strict/test_publication_withdrawal_errors.py:129
Functionadd_competitor_once_intent_is_published
(path: int | str)
tests/soft/strict/test_publication_withdrawal_pending.py:69
Functionadd_probes
( lock_file: str, path: Path, mode: int, unchanged_for: Callable[[os.stat_result], float] )
tests/soft/strict/test_scan_limit.py:134
Functionadvance_clock
(delay: float)
tests/core/test_timeout_validation.py:161
Functionadvance_then_link
(source: str, target: str)
tests/soft/read_write/test_generations_publication.py:71
Functionallow_withdrawal
()
tests/soft/strict/test_release_interruption.py:70
Functionanswer_after_one_open
(path: PathValue, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/soft/strict/test_sentinel.py:202
Functionapply_then_interrupt
( descriptors: filelock._sqlite._connection._ProbeDescriptors, probe: filelock._sqlite._connec
tests/sqlite/test_connection_descriptors.py:187
Functionarm_after
(*paths: PathValue, **options: int | bool | None)
tests/soft/strict/filesystem_faults.py:34
Functionasync_locks
( tmp_path: Path, instance_timeout: float, *, instance_blocking: bool, shared: bool )
tests/sqlite/test_async_settings.py:203
Functionasync_options
()
tests/async_lock/test_singleton.py:35
Functionattempt
()
tests/soft/read_write/test_lock_recovery.py:43
Functionaudit_hook
( # pragma: no cover - interpreter audit hooks run with tracing disabled event: str, args: tuple[StrO
tests/sqlite/test_connection_descriptors.py:38
Functionblock_first_unlock
(fd: int, operation: int)
tests/async_lock/test_release_cancellation.py:186
Functionblock_hook
(_fd: int)
tests/async_lock/test_acquire_cancellation.py:291
Functionblock_hook
(_fd: int)
tests/async_lock/test_release_cancellation.py:57
Functionblock_hook
(_fd: int)
tests/async_lock/test_admission.py:164
Functionblock_hook
(_fd: int)
tests/async_lock/test_executor.py:28
Functionblock_rollback
(_fd: int, _operation: int)
tests/async_lock/test_acquire_cancellation.py:357
Functionblock_unlock
(_fd: int, _operation: int)
tests/async_lock/test_release_cancellation.py:35
Methodblocking
Whether the locking is blocking or not. .. versionadded:: 3.14.0
src/filelock/_core/_lock.py:325
Methodblocking
Whether blocking is enabled by default.
src/filelock/_async_lock/_backends.py:126
Functionboot_clock
(clock_id: int)
tests/soft/read_write/test_participant.py:196
Functionbreak_before_scan
( lock_file: str, directory_ref: tuple[str, int | None], *, entry_limit: int | None )
tests/soft/strict/test_publication_races.py:93
Functionbreak_held_before_final_scan
( lock_file: str, directory_ref: tuple[str, int | None], *, entry_limit: int | None )
tests/soft/strict/test_publication_races.py:118
Functionbreak_route
(request: pytest.FixtureRequest, mocker: MockerFixture)
tests/conftest.py:150
Functionbreak_then_hang_after_exchange
( lock_file: str, ready: Event, go: Event, exchanged: Event )
tests/process_helpers.py:39
Functionbuild
()
tests/core/test_singleton.py:136
Functioncall_renameat2
(source: bytes, target: bytes, flags: int)
src/filelock/_filesystem/_exchange.py:152
Functioncall_renamex_np
(source: bytes, target: bytes, flags: int)
src/filelock/_filesystem/_exchange.py:123
Functioncall_then_signal_once
(*args: int)
tests/core/test_acquire_signal.py:114
Functioncaller_owns_fd
(fd: int)
src/filelock/_filesystem/_ownership.py:64
Functioncancel_after_two
()
tests/core/test_timeout.py:263
Functioncancel_after_two_polls
()
tests/core/test_timeout.py:227
Functioncancel_until_done
()
src/filelock/_filesystem/_windows/_oplocks.py:98
Functioncapture_private_record
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
tests/soft/strict/test_lock.py:387
Functioncapture_private_record
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
tests/soft/strict/test_publication_rollback.py:104
Functioncapture_private_record
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
tests/soft/strict/test_publication_close.py:47
Functioncapture_sentinel
(lock_file: str, path: Path, unchanged_for: Callable[[os.stat_result], float])
tests/soft/strict/test_publication_close.py:158
Functioncheck_child
()
tests/sqlite/test_async.py:42
Functionchild
()
tests/core/test_fork_construction.py:373
Functionchild_entry
()
tests/soft/read_write/test_lock_fork.py:65
Methodclaim_name
The claim that caused the error, if scanning identified one.
src/filelock/_core/_errors.py:120
Methodclaims
Published claims that block acquisition.
src/filelock/_soft/_strict/_lock.py:98
Functioncleanup_child
()
tests/core/test_fork_namespaces.py:43
Functioncleanup_child
()
tests/core/test_fork_ownership.py:57
Functionclear_rw_singletons
()
tests/async_lock/conftest.py:14
Functionclear_singletons
()
tests/soft/read_write/conftest.py:59
Functionclear_sqlite_singletons
()
tests/sqlite/conftest.py:52
Functionclose
(target: int)
tests/core/test_context_errors.py:267
Functionclose
(fd: int)
tests/async_lock/test_close_errors.py:60
Methodclose
End this wrapper's holds, wake its waiters, and join its owned worker. A singleton backend stays open for other wrappers and synchro
src/filelock/_async_lock/_backends.py:252
Methodclose
(self, retire: Callable[[], Awaitable[None]], executor: Executor | None)
src/filelock/_async_lock/_executor.py:35
Functionclose_between_checks
(instance: ReadWriteLock)
tests/sqlite/test_async_singletons.py:127
Methodclose_claim
()
src/filelock/_soft/_strict/_lock.py:276
Functionclose_during
(participant: Participant)
tests/soft/read_write/test_lock_close.py:58
Methodclose_error_policy
What a lock does with an ``os.close`` failure after relinquishing descriptor ownership. .. versionadded:: 3.30.0
src/filelock/_core/_lock.py:255
Functionclose_failure
( mocker: MockerFixture, )
tests/conftest.py:123
Functionclose_in_child
()
tests/sqlite/test_fork.py:70
Functionclose_on_second_poll
(participant: Participant)
tests/soft/read_write/test_lock_close.py:80
Functionclose_then_interrupt
(fd: int)
tests/sqlite/test_connection_descriptors.py:154
Functionclose_then_take_oplock
(self: BaseFileLock, fd: int, *, default_suppresses: bool)
tests/filesystem/windows/test_oplocks.py:61
Functionclosing_worker
( request: pytest.FixtureRequest, tmp_path: Path, make: _Make )
tests/async_lock/test_read_write_wait.py:266
Functioncollect_inside_wait
(event: Event, timeout: float | None = None)
tests/soft/test_lease_finalization.py:214
Functioncollect_then_build
()
tests/sqlite/test_connection_descriptors.py:255
Functioncollide
( private_path: Callable[[], str], public_path: str, record: bytes, descriptor
tests/soft/strict/test_windows.py:162
Functioncollide
( _private: Callable[[], str], _public: str, _record: bytes, _descriptors: dict[str, int], _deadline:
tests/soft/strict/test_windows_publication.py:255
Functioncollide_intent
( _source: PathValue, _destination: PathValue, **_options: int | bool | None, )
tests/soft/strict/test_publication_collision.py:31
Functioncommit_after_a_peer
(log: GenerationLog, successor: Snapshot)
tests/soft/read_write/test_participant.py:47
Functioncommit_after_pause
(log: GenerationLog, successor: Snapshot)
tests/soft/read_write/test_participant.py:216
Methodcompromise
The last claim loss, or ``None``. The value survives release until the next acquire. Release may detect a loss before the heartbeat d
src/filelock/_soft/_lease.py:131
Methodcompromise
How the current hold was lost, or ``None`` while it stands. Stop using the resource and release a compromised hold before acquiring
src/filelock/_soft/_read_write/_hold.py:66
Methodcompromise
How the hold was lost, or ``None`` while it stands. Acquire raises until the lost hold is released.
src/filelock/_soft/_read_write/_async.py:89
Methodconfigure
(self, config: TConfigurable)
tasks/coverage_pragmas.py:37
Functionconnect
( database: str, *, check_same_thread: bool, factory: type[sqlite3.Connection]
tests/sqlite/test_transactions_connection.py:109
Functionconnect_route
(request: pytest.FixtureRequest, tmp_path: Path)
tests/sqlite/test_connection.py:104
Functionconnect_then_move
( # pragma: win32 no cover database: str, *, check_same_thread: bool, factory
tests/sqlite/test_connection.py:260
Functionconnect_while_pinned
( database: str, *, check_same_thread: bool, factory: type[sqlite3.Connection]
tests/sqlite/test_connection_windows.py:60
Functioncontend
()
tests/soft/test_lease.py:205
Methodcontext_error_policy
How a context manager reconciles a body failure with a release failure on exit. .. versionadded:: 3.30.0
src/filelock/_core/_lock.py:245
Functioncoverage_init
(reg: Plugins, options: dict[str, str])
tasks/coverage_pragmas.py:31
Methodcreate
(self, path: str, data: bytes, *, durable: bool = False)
src/filelock/_soft/_read_write/_storage.py:69
Functioncreate_directory
( *, prefix: str, dir: Path, # ruff:ignore[builtin-argument-shadowing] # matches mkd
tests/sqlite/test_links.py:383
Functioncreate_then_swap
( *, prefix: str, dir: Path, # ruff:ignore[builtin-argument-shadowing] # matches mkd
tests/sqlite/test_links.py:205
Functioncreate_with_group_access
( *, prefix: str, dir: Path, # ruff:ignore[builtin-argument-shadowing] # matches mkd
tests/sqlite/test_links.py:401
Functioncreated_directories
(mocker: MockerFixture)
tests/sqlite/test_links.py:379
Methoddatabase
(self)
src/filelock/_sqlite/_links.py:121
Functiondead_link_last
(path: str | os.PathLike[str] | int)
tests/sqlite/test_links_sweep.py:81
Functiondefer_receipt
(receipt: Future[None], timeout: float | None = None)
tests/soft/strict/test_release_observers.py:114
Functiondeferred_release
( lock_path: Path, mocker: MockerFixture )
tests/soft/strict/conftest.py:39
Functiondelay_delete
( fd: int, path: str, private_name: Callable[[], str] | None = None, *,
tests/soft/strict/test_windows_withdrawal.py:82
Functiondelayed_entry
(entry: os.DirEntry[str])
tests/sqlite/test_links_sweep.py:59
← previousnext →1,201–1,300 of 3,548, ranked by callers