Simplify bitmasks for IO events.

This commit is contained in:
Samuel Williams 2020-08-20 13:49:09 +12:00
parent 6747cb5754
commit 905e9c8093
Notes: git 2020-09-14 13:44:39 +09:00
3 changed files with 11 additions and 5 deletions

View file

@ -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()