diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-10 10:49:47 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-10-10 10:49:47 +0000 |
commit | f65dbbd24ad8c550575c661223008ea491a3a777 (patch) | |
tree | 02e5048b052b4dc5e364b9a665822c094f08a74e /enum.c | |
parent | 7c669071c4755496a4dcdd0243783adbecc03f95 (diff) | |
download | ruby-f65dbbd24ad8c550575c661223008ea491a3a777.tar.gz |
* 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
Diffstat (limited to 'enum.c')
0 files changed, 0 insertions, 0 deletions