summaryrefslogtreecommitdiff
path: root/include/ruby/thread.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 06:47:43 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-07-18 06:47:43 +0000
commite9a91d2c95dfe22ad0487952f7a1053ef9a5fd16 (patch)
tree36cf07c7d5f1884d5519f82a782d350fd5c96783 /include/ruby/thread.h
parent6684ade9a36f50f1e51709ff8b1c732a7be05dc2 (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/ruby/thread.h')
-rw-r--r--include/ruby/thread.h3
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