diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2022-10-19 18:53:38 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-19 18:53:38 +1300 |
commit | fc3137ef54562c3c3290245c0f62e0bb193c3145 (patch) | |
tree | 65db334b4c606747eb2da3fd61ea80ef7aede423 /include/ruby/io | |
parent | f982a26374f4300ed9e5cbd122f792f907e20b22 (diff) | |
download | ruby-fc3137ef54562c3c3290245c0f62e0bb193c3145.tar.gz |
Add support for anonymous shared IO buffers. (#6580)
Diffstat (limited to 'include/ruby/io')
-rw-r--r-- | include/ruby/io/buffer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/io/buffer.h b/include/ruby/io/buffer.h index dd92db5bbe..88e5598066 100644 --- a/include/ruby/io/buffer.h +++ b/include/ruby/io/buffer.h @@ -37,6 +37,9 @@ enum rb_io_buffer_flags { // A non-private mapping is marked as external. RB_IO_BUFFER_MAPPED = 4, + // A mapped buffer that is also shared. + RB_IO_BUFFER_SHARED = 8, + // The buffer is locked and cannot be resized. // More specifically, it means we can't change the base address or size. // A buffer is typically locked before a system call that uses the data. |