MCPcopy Create free account
hub / github.com/su-kaka/gcli2api / _stop_writer_thread

Function _stop_writer_thread

log.py:191–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189
190
191def _stop_writer_thread():
192 global _writer_running
193
194 _writer_running = False
195 # 唤醒 writer 线程让它能感知退出信号
196 with _deque_condition:
197 _deque_condition.notify_all()
198
199 if _writer_thread and _writer_thread.is_alive():
200 _writer_thread.join(timeout=3.0)
201
202
203# -----------------------------------------------------------------

Callers 1

closeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected