summaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-03 16:56:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-11-03 16:56:49 +0000
commitc0876125f53f71348bf1b83b88cdf20d07a722c0 (patch)
tree2337cb64663646827522f6608527493c26afdb78 /thread.c
parentaf65d1af17f64d13765fa3e38a4ac3e1b6f0181b (diff)
downloadruby-c0876125f53f71348bf1b83b88cdf20d07a722c0.tar.gz
ruby-c0876125f53f71348bf1b83b88cdf20d07a722c0.tar.xz
ruby-c0876125f53f71348bf1b83b88cdf20d07a722c0.zip
* include/ruby/intern.h (rb_mutex_synchronize): fixed prototype.
* thread.c (rb_mutex_synchronize): fixed function name. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@20102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread.c b/thread.c
index 2407bf8d0..7e4e280f0 100644
--- a/thread.c
+++ b/thread.c
@@ -3023,7 +3023,7 @@ mutex_sleep(int argc, VALUE *argv, VALUE self)
*/
VALUE
-rb_thread_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg)
+rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg)
{
rb_mutex_lock(mutex);
return rb_ensure(func, arg, rb_mutex_unlock, mutex);