diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-16 10:34:54 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-16 10:34:54 +0000 |
commit | 9ee34b15e415446093039f620a5986dd3426f552 (patch) | |
tree | cba1f027185f66f5b536aaab4423264fc7d97c37 /include/ruby/thread.h | |
parent | 6e0375e3e220350b20bbba8125b8243e11e8c810 (diff) |
* thread.c (rb_thread_call_without_gvl2): change the parameter of
`func' from `int *skip_interrupt' to `VALUE *flags'.
If (flags & RUBY_CALL_WO_GVL_FLAG_SKIP_CHECK_INTS) is not zero,
then skip checking interrupt.
[ruby-core:46547]
* include/ruby/thread.h: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/thread.h')
-rw-r--r-- | include/ruby/thread.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/ruby/thread.h b/include/ruby/thread.h index d86a5d1e58..f3b1483a9c 100644 --- a/include/ruby/thread.h +++ b/include/ruby/thread.h @@ -28,9 +28,10 @@ extern "C" { void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1); void *rb_thread_call_without_gvl(void *(*func)(void *), void *data1, rb_unblock_function_t *ubf, void *data2); -void *rb_thread_call_without_gvl2(void *(*func)(void *, int *), void *data1, +void *rb_thread_call_without_gvl2(void *(*func)(void *, VALUE *), void *data1, rb_unblock_function_t *ubf, void *data2); +#define RUBY_CALL_WO_GVL_FLAG_SKIP_CHECK_INTS 0x01 #if defined __GNUC__ && __GNUC__ >= 4 #pragma GCC visibility pop |