MCPcopy Create free account

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

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

Function_sigkill_worker
( # pragma: forked child lock_file: str, mode: Literal["read", "write"], acquired_event: EventTyp
tests/soft_rw/test_soft_rw_sync.py:1104
Function_signal_async_poll
(polling: asyncio.Event)
tests/test_strict_soft_paths.py:171
Function_signal_thread_poll
(polling: threading.Event)
tests/test_strict_soft_paths.py:166
Function_snapshot_descriptor_for_fork
(fd: int, identity: tuple[int, int] | None)
src/filelock/_api.py:1736
Function_tracemalloc_lookup_without_support
()
tests/conftest.py:35
Method_try_break_stale_lock
(self)
src/filelock/_lease.py:202
Function_worker
( lock_file: str, mode: Literal["read", "write"], acquired_event: EventType, release_event: Ev
tests/soft_rw/test_soft_rw_sync.py:1073
Method_write_lock_info
(self, fd: int)
src/filelock/_marker.py:86
Functionacquire
(label: str)
tests/test_strict_soft_races.py:67
Functionacquire
()
tests/test_fork_coordination.py:1113
Functionacquire_first
()
tests/test_strict_soft_races.py:206
Functionacquire_in_thread
()
tests/test_filelock.py:1331
Functionacquire_lock
( lock_file: str, mode: Literal["read", "write"], acquired_event: EventType, release_event: Ev
tests/test_read_write.py:516
Functionacquire_lock
()
tests/test_fork_ownership.py:186
Functionacquire_lock_and_crash
(lock_file: str, mode: Literal["read", "write"], acquired_event: EventType)
tests/test_read_write.py:632
Functionacquire_partial
()
tests/test_strict_soft_races.py:163
Functionacquire_release
(held: filelock.BaseFileLock = lock)
tasks/benchmark.py:86
Functionacquire_second
()
tests/test_strict_soft_races.py:212
Functionadd_competitor_before_final_scan
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:576
Functionadd_competitor_once_intent_is_published
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:1271
Functionaudit_hook
( # pragma: no cover - interpreter audit hooks run with tracing disabled event: str, args: tuple[StrO
tests/test_read_write_fork.py:38
Functionblock_first_unlock
(fd: int, operation: int)
tests/test_async_filelock_release_cancellation.py:69
Functionblock_hook
(_fd: int)
tests/test_async_filelock_release_cancellation.py:105
Functionblock_hook
(_fd: int)
tests/test_async_filelock_runner_shutdown.py:53
Functionblock_hook
(_fd: int)
tests/test_async_filelock_transition_admission.py:91
Functionblock_hook
(_fd: int)
tests/test_async_filelock_acquire_cancellation.py:162
Functionblock_rollback
(_fd: int, _operation: int)
tests/test_async_filelock_acquire_cancellation.py:228
Functionblock_unlock
(_fd: int, _operation: int)
tests/test_async_filelock_release_cancellation.py:41
Methodblocking
Whether the locking is blocking or not. .. versionadded:: 3.14.0
src/filelock/_api.py:846
Methodblocking
Whether blocking is enabled by default.
src/filelock/_async_read_write.py:97
Methodblocking
Whether ``acquire_*`` defaults to blocking; ``False`` makes contention raise immediately.
src/filelock/_soft_rw/_async.py:92
Functionboom
(name: str, *, fd: int | None = None)
tests/soft_rw/test_soft_rw_sync.py:639
Functionbreak_before_scan
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:162
Functionbreak_held_before_final_scan
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:184
Functionbuild
()
tests/test_filelock.py:857
Methodcall
(lock: SoftReadWriteLock, *args: object, **kwargs: object)
tests/soft_rw/test_soft_rw_async.py:71
Functioncancel_after_two
()
tests/test_filelock.py:1170
Functioncapture_private_record
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
tests/test_strict_soft.py:403
Functioncapture_private_record
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
tests/test_strict_soft_failures.py:341
Functioncapture_sentinel
(path: Path)
tests/test_strict_soft_failures.py:991
Functionchain_reader
( reader_index: int, lock_file: str, release_count: Synchronized[int], start_signal: EventType
tests/test_read_write.py:563
Functionchild_entry
()
tests/soft_rw/test_soft_rw_sync.py:1137
Methodclaim_name
The claim that caused the error, if scanning identified one.
src/filelock/_error.py:59
Methodclaims
Published claims that block acquisition.
src/filelock/_strict.py:199
Functioncleanup_child
()
tests/test_fork_ownership.py:67
Functionclose
(fd: int)
tests/test_soft_stale.py:660
Functionclose
(target: int)
tests/test_filelock.py:1889
Functionclose
(fd: int)
tests/test_async_filelock.py:784
Functionclose
(fd: int)
tests/conftest.py:72
Methodclose
Release any held lock and release the underlying filesystem resources. Idempotent.
src/filelock/_soft_rw/_async.py:200
Methodclose_error_policy
What a lock does with an ``os.close`` failure after relinquishing descriptor ownership. .. versionadded:: 3.30.0
src/filelock/_api.py:762
Functionclose_failure
( mocker: MockerFixture, )
tests/conftest.py:57
Functioncollide_intent
( _source: _PathValue, _destination: _PathValue, **_options: int | bool | None, )
tests/test_strict_soft_failures.py:74
Methodcompromise
The loss of claim the heartbeat observed. :returns: the :class:`LeaseCompromise`, or ``None`` while the claim still holds
src/filelock/_lease.py:172
Methodconfigure
(self, config: TConfigurable)
tasks/coverage_pragmas.py:37
Functionconnect
( database: str, *, factory: type[sqlite3.Connection], timeout: float, )
tests/test_read_write.py:451
Functionconnect
( database: str, *, factory: type[sqlite3.Connection], timeout: float, )
tests/test_async_read_write_cancellation.py:478
Functioncontend
()
tests/test_soft_lease.py:324
Methodcontext_error_policy
How a context manager reconciles a body failure with a release failure on exit. .. versionadded:: 3.30.0
src/filelock/_api.py:752
Functioncoverage_init
(reg: Plugins, options: dict[str, str])
tasks/coverage_pragmas.py:30
Functiondelayed_fstat
(fd: int)
tests/test_fork_ownership.py:177
Functiondelayed_link
( source: str, destination: str, *, src_dir_fd: int | None = None, dst
tests/test_strict_soft_races.py:95
Functiondeny_once
(path: str, *, read_only: bool)
tests/test_filelock.py:1630
Functiondeny_only_the_owned_intent_unlink
(directory: Path, name: str)
tests/test_strict_soft_failures.py:1286
Functiondeny_slowly_once
(path: _PathValue, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:1331
Functiondescriptor_child
()
tests/test_fork_ownership.py:157
Methodexceptions
(self)
src/filelock/_api.py:243
Functionexecutescript
(real_connection: sqlite3.Connection, statement: str)
tests/test_async_read_write_cancellation.py:395
Methodexecutor
The executor used for ``run_in_executor`` (a dedicated single-thread one if none was supplied).
src/filelock/_async_read_write.py:107
Methodexecutor
The executor.
src/filelock/asyncio.py:234
Methodexecutor
The executor used for ``run_in_executor``, or ``None`` for the default executor.
src/filelock/_soft_rw/_async.py:102
Functionfail
(fd: int)
tests/test_filelock.py:2482
Functionfail
(fd: int)
tests/test_async_filelock.py:1136
Functionfail_callback
(_fd: int)
tests/test_fork_backends.py:466
Functionfail_claim_unlink
(path: _PathValue, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:526
Functionfail_cleanup_directory_close
(fd: int)
tests/test_strict_soft_failures.py:594
Functionfail_close
(fd: int)
tests/test_strict_soft_failures.py:1360
Functionfail_directory_close
(fd: int)
tests/test_strict_soft_failures.py:371
Functionfail_directory_close
(fd: int)
tests/test_fork_ownership.py:377
Functionfail_directory_close_after_held
(fd: int)
tests/test_strict_soft_failures.py:1416
Functionfail_directory_fstat
(fd: int)
tests/test_fork_ownership.py:341
Functionfail_first_directory_close
(fd: int)
tests/test_strict_soft_failures.py:1034
Functionfail_first_private_cleanup
(path: _PathValue, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:730
Functionfail_first_unlock
(_fd: int, _operation: int)
tests/test_async_filelock_release_cancellation.py:170
Functionfail_first_unlock
(fd: int, operation: int)
tests/test_async_filelock_runner_shutdown.py:92
Functionfail_held
( source: _PathValue, destination: _PathValue, *, src_dir_fd: int | None = Non
tests/test_strict_soft_failures.py:96
Functionfail_held_link
( source: _PathValue, destination: _PathValue, *, src_dir_fd: int | None = Non
tests/test_strict_soft_failures.py:1402
Functionfail_held_unlink
(path: _PathValue, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:587
Functionfail_hook
(_fd: int)
tests/test_async_filelock_acquire_cancellation.py:263
Functionfail_once
(path: Path, *, missing_ok: bool = False)
tests/test_strict_soft_failures.py:471
Functionfail_open_process
(_access: int, _inherit_handle: bool, _pid: int)
tests/test_soft_stale.py:265
Functionfail_private_close
(fd: int)
tests/test_strict_soft.py:410
Functionfail_private_close
(fd: int)
tests/test_strict_soft_failures.py:349
Functionfail_private_inspection
(fd: int)
tests/test_strict_soft_failures.py:1167
Functionfail_protocol_mkdir
(path: Path, mode: int = 0o777, parents: bool = False, exist_ok: bool = False)
tests/test_strict_soft_failures.py:942
Functionfail_registration
(fd: int)
tests/test_fork_backends.py:153
Functionfail_second_close
(fd: int)
tests/test_strict_soft_failures.py:1103
Functionfail_second_directory_close
(fd: int)
tests/test_strict_soft_failures.py:401
Functionfail_sentinel_close
(fd: int)
tests/test_strict_soft_failures.py:1003
Functionfail_sentinel_inspection
(fd: int)
tests/test_strict_soft.py:376
← previousnext →601–700 of 1,605, ranked by callers