Proposal:
The zstandard wrappers should be thread-safe and should not allow any multithreaded use (particularly under the free-threaded build) that is not considered safe by the zstandard C library.
Another thing to look at is using TSAN to verify thread safety in the C extension. I don't know offhand about if you have to do anything special to use TSAN with new tests in the CPython test suite.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
Rogdham/pyzstd#32 (comment)
Proposal:
The zstandard wrappers should be thread-safe and should not allow any multithreaded use (particularly under the free-threaded build) that is not considered safe by the zstandard C library.
Another thing to look at is using TSAN to verify thread safety in the C extension. I don't know offhand about if you have to do anything special to use TSAN with new tests in the CPython test suite.
Has this already been discussed elsewhere?
No response given
Links to previous discussion of this feature:
Rogdham/pyzstd#32 (comment)