MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / _get_log_lock

Function _get_log_lock

src/web/task_manager.py:57–63  ·  view source on GitHub ↗

线程安全地获取或创建任务日志锁

(task_uuid: str)

Source from the content-addressed store, hash-verified

55
56
57def _get_log_lock(task_uuid: str) -> threading.Lock:
58 """线程安全地获取或创建任务日志锁"""
59 if task_uuid not in _log_locks:
60 with _meta_lock:
61 if task_uuid not in _log_locks:
62 _log_locks[task_uuid] = threading.Lock()
63 return _log_locks[task_uuid]
64
65
66def _get_batch_lock(batch_id: str) -> threading.Lock:

Callers 4

add_logMethod · 0.85
register_websocketMethod · 0.85
get_unsent_logsMethod · 0.85
get_logsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected