MCPcopy Create free account

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

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

↓ 3 callersFunctionis_token
(value: str)
src/filelock/_soft/_read_write/_storage.py:366
↓ 3 callersFunctionlease_clock
()
src/filelock/_soft/_read_write/_heartbeat.py:48
↓ 3 callersFunctionlink_or_find_committed
( directory_ref: tuple[str, int | None], source_name: str, destination_name: str, source_ident
src/filelock/_soft/_strict/_publication.py:187
↓ 3 callersFunctionlock_fd_nonblocking
(_fd: int)
src/filelock/_native/_unix.py:57
↓ 3 callersMethodnote_sqlite_use
(self)
src/filelock/_sqlite/_fork.py:220
↓ 3 callersFunctionopen_directory
(directory: str, dir_fd: int | None = None)
src/filelock/_soft/_strict/_directories.py:330
↓ 3 callersFunctionopen_relative
(directory_ref: tuple[str, int | None], name: str, flags: int, mode: int)
src/filelock/_soft/_strict/_directories.py:280
↓ 3 callersFunctionpause_rollback
( mocker: MockerFixture, loop: asyncio.AbstractEventLoop, rollback_started: asyncio.Event, fin
tests/sqlite/async_helpers.py:45
↓ 3 callersFunctionpin_directories
(*directories: Path, acquiring: bool = False)
src/filelock/_soft/_strict/_directories.py:122
↓ 3 callersFunctionpin_proc_pid_namespace
( # pragma: linux cover mocker: MockerFixture, self_link: str | OSError, status: str | OSError )
tests/pid_namespace_helpers.py:33
↓ 3 callersMethodpoison_after_fork
(self, path: pathlib.Path, identity: DatabaseIdentity | None)
src/filelock/_sqlite/_fork.py:215
↓ 3 callersFunctionprivate_public_name
(private_name: str)
src/filelock/_soft/_strict/_claims.py:40
↓ 3 callersFunctionpublish_deletable_claim
( private_name: Callable[[], str], public_path: str, record: bytes, descriptor
src/filelock/_soft/_strict/_windows.py:30
↓ 3 callersFunctionraise_cancelled_error
(cancellation: asyncio.CancelledError, error: BaseException)
src/filelock/_async_lock/_executor.py:82
↓ 3 callersFunctionraise_recorded_errors
(message: str, errors: list[BaseException])
src/filelock/_soft/_strict/_publication.py:95
↓ 3 callersFunctionreclaim_private_record
( directory_ref: tuple[str, int | None], private_name: str, now: Callable[[], float | None] )
src/filelock/_soft/_strict/_directories.py:299
↓ 3 callersFunctionrecord_owned_descriptor
(fd: int, identity: tuple[int, int] | None)
src/filelock/_core/_fork.py:208
↓ 3 callersMethodregister
(self)
tests/soft/read_write/test_participant_model.py:106
↓ 3 callersFunctionrelative_identity
(directory_ref: tuple[str, int | None], name: str)
src/filelock/_soft/_strict/_directories.py:364
↓ 3 callersMethodrelease
(self, probe: _Probe)
src/filelock/_sqlite/_connection.py:309
↓ 3 callersFunctionresolve_lifetime
(lifetime: float | None, cls: type[LockState], *, stacklevel: int)
src/filelock/_core/_settings.py:93
↓ 3 callersFunctionresolve_read_write_timeout
(timeout: float, *, blocking: bool)
src/filelock/_core/_settings.py:217
↓ 3 callersFunctionresolve_timeout
(timeout: float, *, blocking: bool)
src/filelock/_core/_settings.py:232
↓ 3 callersFunctionrewrite_in_place
(lock: Path)
tests/filesystem/conftest.py:22
↓ 3 callersFunctionstart_file_lock_holder
(lock_file: str)
tests/async_lock/cancellation.py:61
↓ 3 callersFunctiontimeout_behavior
(timeout: float, *, any_negative: bool)
src/filelock/_core/_settings.py:211
↓ 3 callersFunctionunlink_in_directory
( directory: Path, name: str, *, claim_fd: int | None = None, cancel_wait: contextlib.Abst
src/filelock/_soft/_strict/_publication.py:262
↓ 3 callersFunctionwrite_break_marker
(fd: int)
src/filelock/_filesystem/_exchange.py:166
↓ 3 callersMethodwrite_head
(self, path: str, temporary: str, data: bytes)
tests/soft/read_write/test_participant_model.py:272
↓ 3 callersMethodwrite_lock
Hold an exclusive lock until the context exits. See :meth:`acquire_write` for timeouts, thread ownership and errors. :param
src/filelock/_soft/_read_write/_lock.py:418
↓ 3 callersFunctionwrite_once
(lock: AsyncReadWriteLock)
tests/sqlite/async_helpers.py:40
↓ 2 callersMethod__exit__
( self, exc_type: type[BaseException] | None, exc_value: BaseException | None,
src/filelock/_core/_release.py:38
↓ 2 callersMethod__init__
(self, lock_file: str, holder: str | None = None)
src/filelock/_core/_errors.py:21
↓ 2 callersMethod__init__
(self, lock_file: str, *, is_singleton: bool = True)
tests/core/test_singleton.py:129
↓ 2 callersMethod__init__
(self, *args: Any, **kwargs: Any)
tests/soft/read_write/test_lock_singleton.py:70
↓ 2 callersMethod__new__
( cls, *_args: _ConnectionParameter, **_kwargs: _ConnectionParameter, )
src/filelock/_sqlite/_connection.py:206
↓ 2 callersMethod_acquire
( self, mode: Mode, timeout: float | None, *, blocking: bool | None,
src/filelock/_soft/_read_write/_lock.py:293
↓ 2 callersMethod_acquire
(self, mode: Literal["read", "write"], timeout: float | None, *, blocking: bool | None)
src/filelock/_soft/_read_write/_async.py:136
↓ 2 callersMethod_acquire
( self, mode: Literal["read", "write"], timeout: float, *, blocking: b
src/filelock/_sqlite/_lock.py:171
↓ 2 callersMethod_acquire
(self, mode: Literal["read", "write"], timeout: float | None, *, blocking: bool | None)
src/filelock/_sqlite/_async.py:120
↓ 2 callersFunction_acquire_in_exited_thread
(lock: BaseFileLock)
tests/core/test_shutdown.py:186
↓ 2 callersMethod_acquire_with_fork_tracking
(self)
src/filelock/_core/_acquire.py:189
↓ 2 callersMethod_adopt_settings
(self, settings: LockSettings)
src/filelock/_core/_lock.py:143
↓ 2 callersMethod_apply_explicit_mode
(self, fd: int)
src/filelock/_native/_unix.py:313
↓ 2 callersMethod_apply_explicit_mode
(self, fd: int)
src/filelock/_soft/_exclusive/_publication.py:144
↓ 2 callersFunction_async_constructor
()
tests/core/test_subclass_options.py:105
↓ 2 callersFunction_backends
(root: Path)
tasks/benchmark.py:59
↓ 2 callersMethod_bind
(self, lock: _Backend, loop: asyncio.AbstractEventLoop | None, executor: futures.Executor | None)
src/filelock/_async_lock/_backends.py:130
↓ 2 callersFunction_btree_page
(kind: int, cell: bytes, cell_count: int, *, right_child: bytes = b"", header_at: int = 0)
tests/sqlite/test_connection_schema.py:50
↓ 2 callersFunction_cancel_close_of_write_lock
( lock_file: str, mocker: MockerFixture, executor: Executor | None, verify: Callable[[Executor
tests/sqlite/test_async_release_cancellation.py:34
↓ 2 callersFunction_cancel_release_after_failed_unlock
( # pragma: needs fcntl lock: AsyncFileLock, mocker: MockerFixture )
tests/async_lock/test_release_cancellation.py:298
↓ 2 callersMethod_close_marker_fd
(self)
src/filelock/_soft/_exclusive/_publication.py:98
↓ 2 callersFunction_convert_to_wal
(path: str)
tests/sqlite/test_connection.py:185
↓ 2 callersFunction_crash_during_private_publication
(stage: str)
tests/soft/strict/test_recovery.py:88
↓ 2 callersMethod_create_marker
(self, path: str, flags: int, opened: list[int])
src/filelock/_soft/_exclusive/_publication.py:136
↓ 2 callersFunction_current_task
()
src/filelock/_async_lock/_owners.py:331
↓ 2 callersFunction_deny_claim_unlinks
(mocker: MockerFixture)
tests/soft/strict/test_publication_withdrawal_pending.py:186
↓ 2 callersMethod_discard_doorway
(self, deadline: float | None, acquisition_error: BaseException | None = None)
src/filelock/_soft/_strict/_lock.py:326
↓ 2 callersMethod_discard_pending_doorways
(self, *, exited_only: bool, deadline: float | None)
src/filelock/_soft/_strict/_lock.py:169
↓ 2 callersMethod_drop_registry_entry
(self)
src/filelock/_core/_release.py:119
↓ 2 callersFunction_entries
(directory: Path)
tests/sqlite/test_connection_side_files.py:248
↓ 2 callersFunction_escape_outside
(verbatim: frozenset[int], name: str)
src/filelock/_identity/_host.py:39
↓ 2 callersFunction_evict_every_holder
(lock_file: str)
tests/soft/read_write/test_hold.py:137
↓ 2 callersFunction_fail_close_of
(mocker: MockerFixture, lock: BaseAsyncFileLock, error: OSError)
tests/async_lock/test_close_errors.py:188
↓ 2 callersFunction_fail_open_process
(mocker: MockerFixture, captured_error: int, ambient_error: int)
tests/soft/exclusive/test_recovery_filesystem.py:107
↓ 2 callersFunction_fail_the_doorway
(mocker: MockerFixture)
tests/soft/strict/test_publication_withdrawal_pending.py:259
↓ 2 callersMethod_fallback_to_soft_lock
(self)
src/filelock/_native/_unix.py:287
↓ 2 callersFunction_file_header
(page_count: int)
tests/sqlite/test_connection_schema.py:61
↓ 2 callersMethod_forget
(self, ticket: ConcurrentFuture[None])
src/filelock/_async_lock/_owners.py:164
↓ 2 callersMethod_forget_inherited_workers
(self)
src/filelock/_async_lock/_backends.py:289
↓ 2 callersMethod_forget_release
(self, state: FileLockContext, pending: StrictRelease)
src/filelock/_soft/_strict/_release.py:186
↓ 2 callersMethod_head_generation
(self)
src/filelock/_soft/_read_write/_generations.py:109
↓ 2 callersMethod_head_record
(self)
src/filelock/_soft/_read_write/_generations.py:115
↓ 2 callersFunction_held_by_live_thread
(box: list[BaseFileLock])
tests/core/test_shutdown.py:204
↓ 2 callersFunction_hidden_module_script
(blocked: str, missing: str, attribute: str)
tests/test_lazy_import.py:83
↓ 2 callersMethod_holds_level
(self)
src/filelock/_sqlite/_lock.py:254
↓ 2 callersFunction_interrupt_hook
( lock: BaseFileLock, callee: CodeType | None, on_call: Callable[[], object] )
tests/core/test_interruption.py:70
↓ 2 callersMethod_join
(self, ticket: ConcurrentFuture[None])
src/filelock/_async_lock/_transitions.py:62
↓ 2 callersFunction_junction_the_tree
( # pragma: win32 cover root: Path, swapped: str, target: Path, create_junction: Callable[[Path, Path], N
tests/soft/read_write/test_lock_storage.py:81
↓ 2 callersFunction_lease_heartbeats
()
tests/soft/test_lease_finalization.py:77
↓ 2 callersMethod_leave
(self, ticket: ConcurrentFuture[None])
src/filelock/_async_lock/_transitions.py:100
↓ 2 callersFunction_leave_pending_doorway
( lock: StrictSoftFileLock, mocker: MockerFixture, *, linger: threading.Event )
tests/soft/strict/test_publication_withdrawal_pending.py:240
↓ 2 callersFunction_link_directories
(database: Path)
tests/sqlite/test_connection_windows.py:289
↓ 2 callersFunction_link_prefix
()
src/filelock/_sqlite/_links.py:265
↓ 2 callersFunction_list_claim_names
(lock_file: str, directory_ref: tuple[str, int | None], *, entry_limit: int | None)
src/filelock/_soft/_strict/_scan.py:127
↓ 2 callersMethod_listed
(self)
src/filelock/_soft/_read_write/_generations.py:92
↓ 2 callersFunction_lock_failing_rollback_once
( tmp_path: Path, policy: ContextErrorPolicy, backend_cancellation: asyncio.CancelledError, ro
tests/async_lock/test_acquire_cancellation.py:78
↓ 2 callersMethod_marker_unchanged_for
(self, marker: os.stat_result)
src/filelock/_soft/_exclusive/_recovery.py:83
↓ 2 callersMethod_name
(generation: int)
src/filelock/_soft/_read_write/_generations.py:106
↓ 2 callersMethod_observe_release
( self, state: FileLockContext, pending: StrictRelease, timeout: float | None )
src/filelock/_soft/_strict/_release.py:193
↓ 2 callersMethod_off_loop
(self, call: Callable[[], _T])
src/filelock/_async_lock/_acquire.py:86
↓ 2 callersMethod_open
(self, path: str, flags: int)
src/filelock/_soft/_read_write/_storage.py:113
↓ 2 callersFunction_open_existing_without_oplock_wait
(path: str, access: int, flags: int, share: int = FILE_SHARE_ALL)
src/filelock/_filesystem/_windows/_oplocks.py:139
↓ 2 callersFunction_open_lock_database
(database: str)
src/filelock/_sqlite/_connection.py:93
↓ 2 callersMethod_open_waiting
(self, timeout: float, *, cancel_check: Callable[[], bool] | None)
src/filelock/_sqlite/_transactions.py:116
↓ 2 callersMethod_outlived_its_lease
(self, holder: _HolderRecord | None)
src/filelock/_soft/_read_write/_participant.py:161
↓ 2 callersFunction_owner_is_gone
(name: str)
src/filelock/_sqlite/_links.py:249
↓ 2 callersFunction_parent_is_missing
(path: str)
src/filelock/_soft/_lease.py:429
↓ 2 callersFunction_patch_rollback_failure
(mocker: MockerFixture, *, after_rollback: bool)
tests/sqlite/test_transactions_release.py:54
↓ 2 callersFunction_percentile
(values: list[float], percentile: int)
tasks/benchmark.py:190
← previousnext →301–400 of 3,548, ranked by callers