diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-18 06:47:43 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-07-18 06:47:43 +0000 |
commit | e9a91d2c95dfe22ad0487952f7a1053ef9a5fd16 (patch) | |
tree | 36cf07c7d5f1884d5519f82a782d350fd5c96783 /include | |
parent | 6684ade9a36f50f1e51709ff8b1c732a7be05dc2 (diff) |
* thread.c (rb_thread_call_without_gvl2): added.
it can skip last CHECK_INTS. See document for more details.
Document about it was updated a bit.
* include/ruby/thread.h (decl. of rb_thread_call_without_gvl2): added.
* thread.c (rb_thread_call_with_gvl): remove "EXPERIMENTAL!"
warning from a document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/thread.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/thread.h b/include/ruby/thread.h index 9b9bcde866..d86a5d1e58 100644 --- a/include/ruby/thread.h +++ b/include/ruby/thread.h @@ -28,6 +28,9 @@ 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, + rb_unblock_function_t *ubf, void *data2); + #if defined __GNUC__ && __GNUC__ >= 4 #pragma GCC visibility pop |