diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-01 04:56:51 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-01 04:56:51 +0000 |
commit | d98da36b8c4534b87a0277716091f8df9f04f2d7 (patch) | |
tree | 5ba0887eb135e3600d8a505a98219830f78f37b2 /include/ruby | |
parent | 9be62b3b1aeb25114c6867f54c5d3a76d9f1db0b (diff) | |
download | ruby-d98da36b8c4534b87a0277716091f8df9f04f2d7.tar.gz |
* thread.c (rb_thread_fd_select): new function to call select
using rb_fdset_t.
* io.c (select_internal): use rb_thread_fd_select instead of
rb_thread_select. based on the patch from Kengo Matsuyama.
[ruby-dev:38221]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23109 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 617c11808e..49a27fc74a 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -244,6 +244,7 @@ typedef fd_set rb_fdset_t; #define rb_fd_clr(n, f) FD_CLR(n, f) #define rb_fd_isset(n, f) FD_ISSET(n, f) #define rb_fd_copy(d, s, n) (*(d) = *(s)) +#define rb_fd_resize(n, f) (void)(f) #define rb_fd_ptr(f) (f) #define rb_fd_init(f) FD_ZERO(f) #define rb_fd_term(f) (void)(f) @@ -327,6 +328,7 @@ VALUE rb_thread_create(VALUE (*)(ANYARGS), void*); void rb_thread_signal_raise(void *, int); void rb_thread_signal_exit(void *); int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *); +int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *); void rb_thread_wait_for(struct timeval); VALUE rb_thread_current(void); VALUE rb_thread_main(void); |