diff options
| author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 08:21:24 +0000 |
|---|---|---|
| committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-13 08:21:24 +0000 |
| commit | c205c9aafadd5f7c5e95348c48fe1ab1525137ec (patch) | |
| tree | f463b7c587f8cfb1d0d5d5704518885b1c3d899e /include/ruby | |
| parent | 71ad9f671c5ea48572a141dde6292bc651dbbcd7 (diff) | |
| download | ruby-c205c9aafadd5f7c5e95348c48fe1ab1525137ec.tar.gz ruby-c205c9aafadd5f7c5e95348c48fe1ab1525137ec.tar.xz ruby-c205c9aafadd5f7c5e95348c48fe1ab1525137ec.zip | |
* thread.c (rb_thread_check_ints): added. please note that
this function may cause ruby's thread switching.
* include/ruby/intern.h: ditto.
* regint.h: use rb_thread_check_ints() instead of
RUBY_CHECK_INTS() directly.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18572 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
| -rw-r--r-- | include/ruby/intern.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index df9354918..eed85edc3 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -654,6 +654,7 @@ VALUE rb_struct_define_without_accessor(const char *, VALUE, rb_alloc_func_t, .. /* thread.c */ typedef void rb_unblock_function_t(void *); typedef VALUE rb_blocking_function_t(void *); +void rb_thread_check_ints(void); VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2); #define RB_UBF_DFL ((rb_unblock_function_t *)-1) |
