MCPcopy Create free account

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

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

↓ 2 callersFunction_pin_namespace
(mocker: MockerFixture, link: Path, namespace: int | OSError)
tests/pid_namespace_helpers.py:22
↓ 2 callersMethod_poll_delay
(self, poll_interval: float, attempt: int)
src/filelock/_core/_acquire.py:300
↓ 2 callersFunction_prior_rollback_failures
()
tests/async_lock/test_acquire_cancellation.py:70
↓ 2 callersMethod_probe
(self, start: Snapshot, patience: int = _RETAINED_GENERATIONS)
src/filelock/_soft/_read_write/_generations.py:133
↓ 2 callersFunction_probe_hard_link_unsupported_errnos
()
src/filelock/_soft/_strict/_publication.py:86
↓ 2 callersFunction_proc_numbers_tasks_as_here
()
src/filelock/_identity/_process.py:151
↓ 2 callersMethod_publish_windows_claim
(self, claim_directory: Path, name: str, token: str)
src/filelock/_soft/_strict/_lock.py:269
↓ 2 callersFunction_published
(head: Path)
tests/soft/read_write/test_generations_publication.py:41
↓ 2 callersFunction_python_without_links
(script: str, *args: Path)
tests/test_public_api.py:20
↓ 2 callersFunction_race_sentinel_publication
(lock_path: Path, mocker: MockerFixture, sentinel: bytes)
tests/soft/strict/test_sentinel.py:56
↓ 2 callersMethod_raise_acquire_rollback_errors
(self, acquire_error: BaseException, rollback_error: BaseException)
src/filelock/_async_lock/_acquire.py:184
↓ 2 callersFunction_raise_if_unsupported_sqlite_format
(fd: int, database: str)
src/filelock/_sqlite/_connection.py:112
↓ 2 callersFunction_raise_if_untrusted_directory
( path: str, found: os.stat_result, parent: os.stat_result, lock_directory: os.stat_result, *, fd: int | N
src/filelock/_soft/_read_write/_storage.py:316
↓ 2 callersMethod_raise_if_unusable
(self)
src/filelock/_sqlite/_async.py:106
↓ 2 callersMethod_raise_if_voided
(self)
src/filelock/_core/_acquire.py:321
↓ 2 callersMethod_read
(self, generation: int)
src/filelock/_soft/_read_write/_generations.py:126
↓ 2 callersFunction_read_start_token
(pid: int)
src/filelock/_identity/_process.py:199
↓ 2 callersFunction_reap_before_publication
(lock_path: Path, token: str, mocker: MockerFixture)
tests/soft/strict/test_publication_races.py:152
↓ 2 callersMethod_reconcile_failed_acquire
(self, canonical: str, *, levels_before: int)
src/filelock/_core/_acquire.py:338
↓ 2 callersMethod_record
(self)
src/filelock/_soft/_read_write/_participant.py:83
↓ 2 callersMethod_recorded_holder
(cls, content: str | None)
src/filelock/_soft/_exclusive/_recovery.py:256
↓ 2 callersMethod_refresh
(self)
src/filelock/_soft/_lease.py:378
↓ 2 callersMethod_refresh_nonce
(self)
src/filelock/_soft/_read_write/_participant.py:140
↓ 2 callersFunction_refresh_owner_pins
()
src/filelock/_core/_fork.py:107
↓ 2 callersFunction_refuse_returning_a_claim
(mocker: MockerFixture)
tests/soft/exclusive/test_recovery_claim.py:204
↓ 2 callersFunction_refuse_unrelated_claim_entries
(lock_file: str, directory: Path, fd: int)
src/filelock/_soft/_strict/_directories.py:206
↓ 2 callersFunction_refuse_unrelated_coordination_entries
(lock_file: str, directory: Path, fd: int)
src/filelock/_soft/_strict/_directories.py:334
↓ 2 callersMethod_registry_key
(self, canonical: str)
src/filelock/_core/_acquire.py:130
↓ 2 callersMethod_release_abandoned_holds
(self, *, exited_only: bool)
src/filelock/_core/_lock.py:226
↓ 2 callersMethod_release_held
(self, *, force: bool)
src/filelock/_core/_release.py:127
↓ 2 callersMethod_release_in_context
(self, body_error: BaseException | None)
src/filelock/_sqlite/_async.py:127
↓ 2 callersMethod_release_in_context
( # ty: ignore[incompatible-method-override] # release is awaited on async locks self, body_error: B
src/filelock/_async_lock/_release.py:71
↓ 2 callersFunction_release_timeout
(value: float)
src/filelock/_soft/_strict/_release.py:219
↓ 2 callersMethod_release_without_loop
(self, *, exited_only: bool)
src/filelock/_async_lock/_release.py:280
↓ 2 callersFunction_remove_at_next_link
(lock_file: str, missing: str, mocker: MockerFixture)
tests/soft/read_write/test_lock_recovery.py:152
↓ 2 callersFunction_rename_call
()
src/filelock/_filesystem/_exchange.py:108
↓ 2 callersMethod_reset_singletons
(cls)
src/filelock/_soft/_read_write/_lock.py:145
↓ 2 callersMethod_rollback_failed_acquire_async
(self, acquisition_error: BaseException)
src/filelock/_async_lock/_acquire.py:153
↓ 2 callersFunction_same_start
(current: int, recorded: int)
src/filelock/_identity/_process.py:33
↓ 2 callersMethod_set_claim_deadline
(self, start_time: float, timeout: float)
src/filelock/_core/_state.py:267
↓ 2 callersMethod_settle_head_locked
(self)
src/filelock/_async_lock/_transitions.py:96
↓ 2 callersFunction_shutdown_with_failed_release
( # pragma: needs fcntl lock: AsyncFileLock, mocker: MockerFixture, body_error: ValueError, release_error
tests/async_lock/test_executor.py:111
↓ 2 callersFunction_side_file_exists
(database: str)
src/filelock/_sqlite/_connection.py:127
↓ 2 callersFunction_singleton_handed_out_while_finalizing
(lock_path: str, *, thread_local: bool)
tests/core/test_shutdown.py:233
↓ 2 callersMethod_soft_marker
(self)
src/filelock/_native/_unix.py:116
↓ 2 callersMethod_start_internal_method
( self, method: Callable[[], None] | Callable[[], Coroutine[None, None, None]] )
src/filelock/_async_lock/_release.py:175
↓ 2 callersMethod_start_over
(self)
src/filelock/_soft/_read_write/_participant.py:164
↓ 2 callersMethod_start_tracked_release
(self)
src/filelock/_async_lock/_release.py:168
↓ 2 callersFunction_starttime_unshifted
()
src/filelock/_identity/_process.py:166
↓ 2 callersMethod_stop_heartbeat
(self)
src/filelock/_soft/_lease.py:176
↓ 2 callersFunction_supports_symlink
()
tasks/capabilities.py:36
↓ 2 callersMethod_suppresses_close_error
(self, *, default_suppresses: bool)
src/filelock/_core/_state.py:305
↓ 2 callersFunction_sync_constructor
()
tests/core/test_subclass_options.py:51
↓ 2 callersMethod_take_over_by_exchange
(self, marker: os.stat_result, breaker_pid: int | None)
src/filelock/_soft/_exclusive/_recovery.py:99
↓ 2 callersFunction_tighten_link_directory
(fd: int, parent: Path)
src/filelock/_sqlite/_links.py:164
↓ 2 callersFunction_timed
(name: str, run: Callable[[], object], *, unit: str, scale: float)
tasks/benchmark.py:173
↓ 2 callersMethod_touch
(self)
src/filelock/_soft/_lease.py:404
↓ 2 callersFunction_track_sqlite_use
(event: str, _args: Unused)
src/filelock/_sqlite/_fork.py:251
↓ 2 callersMethod_try_break_expired_lock
(self)
src/filelock/_native/_unix.py:403
↓ 2 callersMethod_unlink_held_marker
(self, identity: tuple[int, int] | None)
src/filelock/_soft/_exclusive/_publication.py:161
↓ 2 callersFunction_unreadable_file
()
tasks/capabilities.py:307
↓ 2 callersMethod_unregister_released_descriptor
(self)
src/filelock/_core/_state.py:279
↓ 2 callersMethod_valid_epoch
(self)
src/filelock/_soft/_read_write/_generations.py:122
↓ 2 callersMethod_validate_reentrant
(self, mode: Literal["read", "write"], holder: int)
src/filelock/_sqlite/_lock.py:263
↓ 2 callersFunction_write_intent_pending
(prober: ReadWriteLock, deadline: float)
tests/sqlite/test_lock_contention.py:213
↓ 2 callersMethod_write_lock_info
(self, fd: int)
src/filelock/_soft/_exclusive/_marker.py:81
↓ 2 callersMethodacquire
( # ruff:ignore[too-many-arguments] # one keyword per piece of wrapper state the table consults self
src/filelock/_async_lock/_owners.py:73
↓ 2 callersMethodacquire_read
Acquire a shared read lock for the current task. :param timeout: seconds to wait, or ``None`` for the instance default :para
src/filelock/_soft/_read_write/_async.py:108
↓ 2 callersMethodacquire_wait
Resolve per-call overrides against this context's settings. :param timeout: wait limit in seconds, or None for the context default
src/filelock/_core/_state.py:130
↓ 2 callersMethodacquire_write
Acquire an exclusive write lock for the current task. :param timeout: seconds to wait, or ``None`` for the instance default
src/filelock/_soft/_read_write/_async.py:158
↓ 2 callersFunctionbreak_marker_pid
(content: str | None)
src/filelock/_filesystem/_exchange.py:38
↓ 2 callersFunctionbuild
()
tasks/capabilities.py:109
↓ 2 callersFunctioncapture
(fd: int)
tests/conftest.py:133
↓ 2 callersFunctioncapture_call
(func: Callable[[], _T])
src/filelock/_async_lock/_executor.py:149
↓ 2 callersFunctionclaim_record
(token: str)
src/filelock/_soft/_strict/_claims.py:125
↓ 2 callersFunctioncleanup_child_hold
( lock: BaseFileLock, proxy: AcquireReturnProxy, action: Literal["release", "context", "collect"],
tests/core/fork_probes.py:42
↓ 2 callersMethodclose
(self)
src/filelock/_core/_acquire.py:387
↓ 2 callersFunctionconstruct
()
tests/soft/read_write/test_lock_singleton.py:147
↓ 2 callersFunctiondelegate_to_current
(name: str)
src/filelock/_core/_state.py:209
↓ 2 callersMethoddrain
(self)
src/filelock/_sqlite/_connection.py:314
↓ 2 callersFunctiondrain_cancellation
(future: asyncio.Future[BackendOutcome[None]])
src/filelock/_async_lock/_executor.py:56
↓ 2 callersFunctionensure_directory_exists
(filename: Path | str)
src/filelock/_filesystem/_files.py:46
↓ 2 callersFunctionensure_protocol_directory
(lock_file: str, directory: Path, mode: int, parent_fd: int | None = None)
src/filelock/_soft/_strict/_directories.py:137
↓ 2 callersFunctionexecute
(real_connection: sqlite3.Connection, statement: str)
tests/sqlite/test_async_cancellation.py:195
↓ 2 callersFunctiongrant_everyone_write
(directory: Path)
tests/sqlite/process_support.py:77
↓ 2 callersFunctionhold
()
tests/soft/read_write/test_async_executor.py:84
↓ 2 callersFunctionholder_header
(token: str)
src/filelock/_soft/_read_write/_storage.py:346
↓ 2 callersFunctionholding_reader
(database: Path)
tests/sqlite/process_support.py:58
↓ 2 callersFunctionidentity_at
Identify a file or directory without following a reparse point. :param path: name to inspect :returns: volume serial number
src/filelock/_filesystem/_windows/_handles.py:320
↓ 2 callersFunctioninspect_lock_path
(path: Path)
src/filelock/_soft/_strict/_sentinel.py:106
↓ 2 callersFunctioninterrupt_once
(real: Callable[[_T], None], *, before: bool)
tests/read_write_helpers.py:104
↓ 2 callersFunctionis_claim_probe_name
(name: str)
src/filelock/_soft/_strict/_claims.py:33
↓ 2 callersFunctionis_reclaimable_private_name
(name: str)
src/filelock/_soft/_strict/_claims.py:27
↓ 2 callersMethodis_stale
(self, key: str, path: str)
src/filelock/_soft/_read_write/_sweep.py:112
↓ 2 callersFunctionlink_host
()
src/filelock/_identity/_process.py:284
↓ 2 callersFunctionlink_no_follow
( source: str | Path, destination: str | Path, *, src_dir_fd: int | None = None, dst_dir_f
src/filelock/_soft/_strict/_publication.py:211
↓ 2 callersMethodlistdir
(self, path: str)
tests/soft/read_write/test_participant_model.py:307
↓ 2 callersFunctionlost_hold_error
(lock_file: str, mode: Mode, compromise: LeaseCompromise)
src/filelock/_soft/_read_write/_hold.py:222
↓ 2 callersFunctionlstat_relative
(directory_ref: tuple[str, int | None], name: str)
src/filelock/_soft/_strict/_directories.py:172
↓ 2 callersFunctionmain
()
tasks/benchmark.py:41
← previousnext →401–500 of 3,548, ranked by callers