mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Add support for anonymous shared IO buffers. (#6580)
This commit is contained in:
parent
f982a26374
commit
fc3137ef54
Notes:
git
2022-10-19 05:54:07 +00:00
Merged-By: ioquatix <samuel@codeotaku.com>
3 changed files with 52 additions and 3 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue