diff options
author | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-09 11:32:11 +0000 |
---|---|---|
committer | kosaki <kosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-09-09 11:32:11 +0000 |
commit | 5dbbee86b616424ee9800488a381b02f9e7c65b3 (patch) | |
tree | dcb707c1d25fc134ff75c1c411f4d57a648dd2e6 | |
parent | 149176225ac37574530f52e61e2f1dc1b8905e24 (diff) | |
download | ruby-5dbbee86b616424ee9800488a381b02f9e7c65b3.tar.gz |
* include/ruby/intern.h (rb_thread_blocking_region): Added
a comment of recommended alternative way.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36935 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | include/ruby/intern.h | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Sun Sep 9 18:39:46 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * include/ruby/intern.h (rb_thread_blocking_region): Added + a comment of recommended alternative way. + Sun Sep 9 18:37:05 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com> * lib/sync.rb (Sync_m): Removed RCS_ID. diff --git a/include/ruby/intern.h b/include/ruby/intern.h index e4b568d32e..eebb24ce0a 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -818,6 +818,8 @@ typedef void rb_unblock_function_t(void *); typedef VALUE rb_blocking_function_t(void *); void rb_thread_check_ints(void); int rb_thread_interrupted(VALUE thval); + +/* Use rb_thread_call_without_gvl family instead. */ DEPRECATED(VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2)); #define RUBY_UBF_IO ((rb_unblock_function_t *)-1) |