diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-01 06:49:07 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-01 06:49:07 +0900 |
commit | 3b52230452980f3afc6a7380276ea62f7c65e517 (patch) | |
tree | 51b1529d7a8897be325545d532e2f317f1dc0241 /include | |
parent | 242f024bcbff6c46edd84a03365fa99ebd8eb524 (diff) |
Define functions using rb_wait_for_single_fd [Bug #18046]
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4696
Merged-By: nobu <nobu@ruby-lang.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/internal/intern/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/ruby/internal/intern/thread.h b/include/ruby/internal/intern/thread.h index dd591474ce..7c656a628c 100644 --- a/include/ruby/internal/intern/thread.h +++ b/include/ruby/internal/intern/thread.h @@ -31,8 +31,8 @@ struct timeval; /* thread.c */ void rb_thread_schedule(void); -#define rb_thread_wait_fd(fd) rb_wait_for_single_fd((fd), RUBY_IO_READABLE, NULL) -#define rb_thread_fd_writable(fd) rb_wait_for_single_fd((fd), RUBY_IO_WRITABLE, NULL) +int rb_thread_wait_fd(int); +int rb_thread_fd_writable(int); void rb_thread_fd_close(int); int rb_thread_alone(void); void rb_thread_sleep(int); |