From f65dbbd24ad8c550575c661223008ea491a3a777 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 10 Oct 2009 10:49:47 +0000 Subject: * ext/curses/curses.c: use rb_thread_blocking_region to avoid rb_read_check. This makes other threads runnable in getstr and wgetstr. (getch_func): extracted from curses_getch. (curses_getch): use rb_thread_blocking_region with getch_func. (getstr_func): extracted from curses_getstr. (curses_getstr): use rb_thread_blocking_region with getstr_func. (wgetch_func): extracted from window_getch. (window_getch): use rb_thread_blocking_region with wgetch_func. (wgetstr_func): extracted from window_getstr. (window_getstr): use rb_thread_blocking_region with wgetstr_func. * include/ruby/io.h (rb_read_check): deprecated because it access internal of stdio. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/ruby') diff --git a/include/ruby/io.h b/include/ruby/io.h index 45384db586..2ccaf0f1f9 100644 --- a/include/ruby/io.h +++ b/include/ruby/io.h @@ -164,7 +164,7 @@ NORETURN(void rb_eof_error(void)); void rb_io_read_check(rb_io_t*); int rb_io_read_pending(rb_io_t*); -void rb_read_check(FILE*); +DEPRECATED(void rb_read_check(FILE*)); #if defined(__cplusplus) #if 0 -- cgit v1.2.3