Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/tox-dev/filelock
/ functions
Functions
1,605 in github.com/tox-dev/filelock
⨍
Functions
1,605
◇
Types & classes
114
↳
Endpoints
9
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
Function
acquire
(label: str)
tests/test_strict_soft_races.py:67
Function
acquire
()
tests/test_fork_coordination.py:1113
Function
acquire_first
()
tests/test_strict_soft_races.py:206
Function
acquire_in_thread
()
tests/test_filelock.py:1331
Function
acquire_lock
( lock_file: str, mode: Literal["read", "write"], acquired_event: EventType, release_event: Ev
tests/test_read_write.py:516
Function
acquire_lock
()
tests/test_fork_ownership.py:186
Function
acquire_lock_and_crash
(lock_file: str, mode: Literal["read", "write"], acquired_event: EventType)
tests/test_read_write.py:632
Function
acquire_partial
()
tests/test_strict_soft_races.py:163
Function
acquire_release
(held: filelock.BaseFileLock = lock)
tasks/benchmark.py:86
Function
acquire_second
()
tests/test_strict_soft_races.py:212
Function
add_competitor_before_final_scan
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:576
Function
add_competitor_once_intent_is_published
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:1271
Function
audit_hook
( # pragma: no cover - interpreter audit hooks run with tracing disabled event: str, args: tuple[StrO
tests/test_read_write_fork.py:38
Function
block_first_unlock
(fd: int, operation: int)
tests/test_async_filelock_release_cancellation.py:69
Function
block_hook
(_fd: int)
tests/test_async_filelock_release_cancellation.py:105
Function
block_hook
(_fd: int)
tests/test_async_filelock_runner_shutdown.py:53
Function
block_hook
(_fd: int)
tests/test_async_filelock_transition_admission.py:91
Function
block_hook
(_fd: int)
tests/test_async_filelock_acquire_cancellation.py:162
Function
block_rollback
(_fd: int, _operation: int)
tests/test_async_filelock_acquire_cancellation.py:228
Function
block_unlock
(_fd: int, _operation: int)
tests/test_async_filelock_release_cancellation.py:41
Method
blocking
Whether the locking is blocking or not. .. versionadded:: 3.14.0
src/filelock/_api.py:846
Method
blocking
Whether blocking is enabled by default.
src/filelock/_async_read_write.py:97
Method
blocking
Whether ``acquire_*`` defaults to blocking; ``False`` makes contention raise immediately.
src/filelock/_soft_rw/_async.py:92
Function
boom
(name: str, *, fd: int | None = None)
tests/soft_rw/test_soft_rw_sync.py:639
Function
break_before_scan
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:162
Function
break_held_before_final_scan
(path: str | os.PathLike[str])
tests/test_strict_soft_failures.py:184
Function
build
()
tests/test_filelock.py:857
Method
call
(lock: SoftReadWriteLock, *args: object, **kwargs: object)
tests/soft_rw/test_soft_rw_async.py:71
Function
cancel_after_two
()
tests/test_filelock.py:1170
Function
capture_private_record
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
tests/test_strict_soft.py:403
Function
capture_private_record
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
tests/test_strict_soft_failures.py:341
Function
capture_sentinel
(path: Path)
tests/test_strict_soft_failures.py:991
Function
chain_reader
( reader_index: int, lock_file: str, release_count: Synchronized[int], start_signal: EventType
tests/test_read_write.py:563
Function
child_entry
()
tests/soft_rw/test_soft_rw_sync.py:1137
Method
claim_name
The claim that caused the error, if scanning identified one.
src/filelock/_error.py:59
Method
claims
Published claims that block acquisition.
src/filelock/_strict.py:199
Function
cleanup_child
()
tests/test_fork_ownership.py:67
Function
close
(fd: int)
tests/test_soft_stale.py:660
Function
close
(target: int)
tests/test_filelock.py:1889
Function
close
(fd: int)
tests/test_async_filelock.py:784
Function
close
(fd: int)
tests/conftest.py:72
Method
close
Release any held lock and release the underlying filesystem resources. Idempotent.
src/filelock/_soft_rw/_async.py:200
Method
close_error_policy
What a lock does with an ``os.close`` failure after relinquishing descriptor ownership. .. versionadded:: 3.30.0
src/filelock/_api.py:762
Function
close_failure
( mocker: MockerFixture, )
tests/conftest.py:57
Function
collide_intent
( _source: _PathValue, _destination: _PathValue, **_options: int | bool | None, )
tests/test_strict_soft_failures.py:74
Method
compromise
The loss of claim the heartbeat observed. :returns: the :class:`LeaseCompromise`, or ``None`` while the claim still holds
src/filelock/_lease.py:172
Method
configure
(self, config: TConfigurable)
tasks/coverage_pragmas.py:37
Function
connect
( database: str, *, factory: type[sqlite3.Connection], timeout: float, )
tests/test_read_write.py:451
Function
connect
( database: str, *, factory: type[sqlite3.Connection], timeout: float, )
tests/test_async_read_write_cancellation.py:478
Function
contend
()
tests/test_soft_lease.py:324
Method
context_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
Function
coverage_init
(reg: Plugins, options: dict[str, str])
tasks/coverage_pragmas.py:30
Function
delayed_fstat
(fd: int)
tests/test_fork_ownership.py:177
Function
delayed_link
( source: str, destination: str, *, src_dir_fd: int | None = None, dst
tests/test_strict_soft_races.py:95
Function
deny_once
(path: str, *, read_only: bool)
tests/test_filelock.py:1630
Function
deny_only_the_owned_intent_unlink
(directory: Path, name: str)
tests/test_strict_soft_failures.py:1286
Function
deny_slowly_once
(path: _PathValue, flags: int, mode: int = 0o777, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:1331
Function
descriptor_child
()
tests/test_fork_ownership.py:157
Method
exceptions
(self)
src/filelock/_api.py:243
Function
executescript
(real_connection: sqlite3.Connection, statement: str)
tests/test_async_read_write_cancellation.py:395
Method
executor
The executor used for ``run_in_executor`` (a dedicated single-thread one if none was supplied).
src/filelock/_async_read_write.py:107
Method
executor
The executor.
src/filelock/asyncio.py:234
Method
executor
The executor used for ``run_in_executor``, or ``None`` for the default executor.
src/filelock/_soft_rw/_async.py:102
Function
fail
(fd: int)
tests/test_filelock.py:2482
Function
fail
(fd: int)
tests/test_async_filelock.py:1136
Function
fail_callback
(_fd: int)
tests/test_fork_backends.py:466
Function
fail_claim_unlink
(path: _PathValue, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:526
Function
fail_cleanup_directory_close
(fd: int)
tests/test_strict_soft_failures.py:594
Function
fail_close
(fd: int)
tests/test_strict_soft_failures.py:1360
Function
fail_directory_close
(fd: int)
tests/test_strict_soft_failures.py:371
Function
fail_directory_close
(fd: int)
tests/test_fork_ownership.py:377
Function
fail_directory_close_after_held
(fd: int)
tests/test_strict_soft_failures.py:1416
Function
fail_directory_fstat
(fd: int)
tests/test_fork_ownership.py:341
Function
fail_first_directory_close
(fd: int)
tests/test_strict_soft_failures.py:1034
Function
fail_first_private_cleanup
(path: _PathValue, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:730
Function
fail_first_unlock
(_fd: int, _operation: int)
tests/test_async_filelock_release_cancellation.py:170
Function
fail_first_unlock
(fd: int, operation: int)
tests/test_async_filelock_runner_shutdown.py:92
Function
fail_held
( source: _PathValue, destination: _PathValue, *, src_dir_fd: int | None = Non
tests/test_strict_soft_failures.py:96
Function
fail_held_link
( source: _PathValue, destination: _PathValue, *, src_dir_fd: int | None = Non
tests/test_strict_soft_failures.py:1402
Function
fail_held_unlink
(path: _PathValue, *, dir_fd: int | None = None)
tests/test_strict_soft_failures.py:587
Function
fail_hook
(_fd: int)
tests/test_async_filelock_acquire_cancellation.py:263
Function
fail_once
(path: Path, *, missing_ok: bool = False)
tests/test_strict_soft_failures.py:471
Function
fail_open_process
(_access: int, _inherit_handle: bool, _pid: int)
tests/test_soft_stale.py:265
Function
fail_private_close
(fd: int)
tests/test_strict_soft.py:410
Function
fail_private_close
(fd: int)
tests/test_strict_soft_failures.py:349
Function
fail_private_inspection
(fd: int)
tests/test_strict_soft_failures.py:1167
Function
fail_protocol_mkdir
(path: Path, mode: int = 0o777, parents: bool = False, exist_ok: bool = False)
tests/test_strict_soft_failures.py:942
Function
fail_registration
(fd: int)
tests/test_fork_backends.py:153
Function
fail_second_close
(fd: int)
tests/test_strict_soft_failures.py:1103
Function
fail_second_directory_close
(fd: int)
tests/test_strict_soft_failures.py:401
Function
fail_sentinel_close
(fd: int)
tests/test_strict_soft_failures.py:1003
Function
fail_sentinel_inspection
(fd: int)
tests/test_strict_soft.py:376
← previous
next →
601–700 of 1,605, ranked by callers