diff options
author | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-06-19 13:47:16 +1200 |
---|---|---|
committer | Samuel Williams <samuel.williams@oriontransfer.co.nz> | 2021-06-22 22:48:57 +1200 |
commit | 45e65f302b663b2c6ab69df06d3b6f219c1797b2 (patch) | |
tree | adf0ed3b3b9c92626f2c21a320ecdf66998b4c27 /include/ruby/internal/intern/thread.h | |
parent | 3deb5d7113e1fd6e4b468e09464d524d390d811e (diff) |
Deprecate and rework old (fd) centric functions.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4592
Diffstat (limited to 'include/ruby/internal/intern/thread.h')
-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 a12a371058..dd591474ce 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); -void rb_thread_wait_fd(int); -int rb_thread_fd_writable(int); +#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) void rb_thread_fd_close(int); int rb_thread_alone(void); void rb_thread_sleep(int); |