* thread.c (rb_thread_wait_fd_rw): remove silly rb_thread_alone()

check.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38395 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
kosaki 2012-12-15 05:39:25 +00:00
parent 2ed40d3b57
commit 47fa79203d
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Sat Dec 15 11:53:36 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
* thread.c (rb_thread_wait_fd_rw): remove silly rb_thread_alone()
check.
Sat Dec 15 10:22:38 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
* thread.c (rb_thread_polling): revert but deprecate.

View File

@ -3320,7 +3320,6 @@ rb_thread_wait_fd_rw(int fd, int read)
if (fd < 0) {
rb_raise(rb_eIOError, "closed stream");
}
if (rb_thread_alone()) return;
while (result <= 0) {
result = rb_wait_for_single_fd(fd, events, NULL);