mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 21:14:23 +02:00
Simplify bitmasks for IO events.
This commit is contained in:
parent
6747cb5754
commit
905e9c8093
Notes:
git
2020-09-14 13:44:39 +09:00
3 changed files with 11 additions and 5 deletions
6
io.c
6
io.c
|
@ -13381,9 +13381,9 @@ Init_IO(void)
|
|||
rb_cIO = rb_define_class("IO", rb_cObject);
|
||||
rb_include_module(rb_cIO, rb_mEnumerable);
|
||||
|
||||
rb_define_const(rb_cIO, "WAIT_READABLE", INT2NUM(RB_WAITFD_IN));
|
||||
rb_define_const(rb_cIO, "WAIT_PRIORITY", INT2NUM(RB_WAITFD_PRI));
|
||||
rb_define_const(rb_cIO, "WAIT_WRITABLE", INT2NUM(RB_WAITFD_OUT));
|
||||
rb_define_const(rb_cIO, "READABLE", INT2NUM(RUBY_IO_READABLE));
|
||||
rb_define_const(rb_cIO, "WRITABLE", INT2NUM(RUBY_IO_WRITABLE));
|
||||
rb_define_const(rb_cIO, "PRIORITY", INT2NUM(RUBY_IO_PRIORITY));
|
||||
|
||||
/* exception to wait for reading. see IO.select. */
|
||||
rb_mWaitReadable = rb_define_module_under(rb_cIO, "WaitReadable");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue