docstrings for ThreadBuffer