mirror of
https://github.com/ruby/ruby.git
synced 2025-08-27 06:56:13 +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
|
@ -41,6 +41,12 @@
|
|||
# define RB_WAITFD_OUT 0x004
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
RUBY_IO_READABLE = RB_WAITFD_IN,
|
||||
RUBY_IO_WRITABLE = RB_WAITFD_OUT,
|
||||
RUBY_IO_PRIORITY = RB_WAITFD_PRI,
|
||||
} rb_io_event_t;
|
||||
|
||||
#include "ruby/internal/dllexport.h"
|
||||
RBIMPL_SYMBOL_EXPORT_BEGIN()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue