src/torchfx/realtime/ring_buffer.py describes the buffer as lock-free SPSC. Python integer increments are not atomic operations with memory-ordering guarantees; the implementation is correct in practice only because the GIL serializes access. With free-threaded CPython (PEP 703) this assumption breaks. Correct the docstring to state the GIL-dependence explicitly and note the constraint for nogil builds. (Docs-only; behavior unchanged.)
src/torchfx/realtime/ring_buffer.pydescribes the buffer as lock-free SPSC. Python integer increments are not atomic operations with memory-ordering guarantees; the implementation is correct in practice only because the GIL serializes access. With free-threaded CPython (PEP 703) this assumption breaks. Correct the docstring to state the GIL-dependence explicitly and note the constraint for nogil builds. (Docs-only; behavior unchanged.)