summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/thread/thread.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/ext/thread/thread.c b/ext/thread/thread.c
index bf84a390c6..7142459d83 100644
--- a/ext/thread/thread.c
+++ b/ext/thread/thread.c
@@ -18,6 +18,8 @@ static VALUE rb_cConditionVariable;
static VALUE rb_cQueue;
static VALUE rb_cSizedQueue;
+static VALUE set_critical(VALUE value);
+
static VALUE
thread_exclusive_do()
{
@@ -26,15 +28,6 @@ thread_exclusive_do()
return rb_yield(Qundef);
}
-static VALUE
-thread_exclusive_ensure(val)
- VALUE val;
-{
- rb_thread_critical = val;
-
- return Qundef;
-}
-
/*
* call-seq:
* Thread.exclusive { block } => obj
@@ -456,7 +449,7 @@ static VALUE
set_critical(VALUE value)
{
rb_thread_critical = (int)value;
- return Qnil;
+ return Qundef;
}
static VALUE