From 5386d05fb235b59ea301bf035b583e104b9604f8 Mon Sep 17 00:00:00 2001 From: knu Date: Mon, 26 Feb 2007 18:53:44 +0000 Subject: Oops, apply some more hunks to complete the previous change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11895 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/thread/thread.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/thread') diff --git a/ext/thread/thread.c b/ext/thread/thread.c index 7142459d83..c9423bd306 100644 --- a/ext/thread/thread.c +++ b/ext/thread/thread.c @@ -21,7 +21,7 @@ static VALUE rb_cSizedQueue; static VALUE set_critical(VALUE value); static VALUE -thread_exclusive_do() +thread_exclusive_do(void) { rb_thread_critical = 1; @@ -38,9 +38,9 @@ thread_exclusive_do() */ static VALUE -rb_thread_exclusive() +rb_thread_exclusive(void) { - return rb_ensure(thread_exclusive_do, Qundef, thread_exclusive_ensure, rb_thread_critical); + return rb_ensure(thread_exclusive_do, Qundef, set_critical, rb_thread_critical); } typedef struct _Entry { -- cgit v1.2.3