diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-27 00:59:04 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-09-27 00:59:04 +0000 |
commit | 1bdf1a5c6f53fa834c10704bd9b60f6c0c375328 (patch) | |
tree | 1e8bce793ef80120aa2884025ccf37657bd50534 /thread_pthread.c | |
parent | 2cc5eeaf6c377a7b55e2bbaf6661929c17139aa6 (diff) | |
download | ruby-1bdf1a5c6f53fa834c10704bd9b60f6c0c375328.tar.gz |
* thread_pthread.c: make native_fd_select().
* thread.c (do_select): remove #ifdef _WIN32. Instead, use
native_fd_select() always.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33346 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index afc86ca035..de730f10ff 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -856,6 +856,12 @@ native_thread_apply_priority(rb_thread_t *th) #endif /* USE_NATIVE_THREAD_PRIORITY */ +static int +native_fd_select(int n, rb_fdset_t *readfds, rb_fdset_t *writefds, rb_fdset_t *exceptfds, struct timeval *timeout, rb_thread_t *th) +{ + return rb_fd_select(n, readfds, writefds, exceptfds, timeout); +} + static void ubf_pthread_cond_signal(void *ptr) { |