ruby/ext/stringio
John Hawthorn 12c1ddef89 [ruby/stringio] Fix thread safety of strio_free
(https://github.com/ruby/stringio/pull/223)

Follow up to #222

This refcount previously wasn't thread safe (and shouldn't have been
declared `RUBY_TYPED_THREAD_SAFE_FREE`), but it's easy enough to fix
using ruby/atomic.h (Ruby 3.0+)

https://github.com/ruby/stringio/commit/2825dc3007
2026-08-01 07:32:12 +00:00
..

StringIO

Pseudo IO class from/to String.

This library is based on MoonWolf version written in Ruby. Thanks a lot.

Differences to IO

  • fileno raises NotImplementedError.
  • encoding conversion is not implemented, and ignored silently.