summaryrefslogtreecommitdiff
path: root/thread_sync.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-08-28 16:18:58 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-08-29 18:34:09 +0900
commit69683968a99a8281c28e46c1e6cb3736694a1ba6 (patch)
tree24fc2265f18479629ee886be55597607cead7b3f /thread_sync.c
parentabe12d8b96be3c12618811f22ca01788366f99f8 (diff)
fix arity of rb_mutex_synchronize_m
This is just a trivial mistake introduced in 6c56dae4b23c5c50e351758538141ca26b9aba40.
Diffstat (limited to 'thread_sync.c')
-rw-r--r--thread_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/thread_sync.c b/thread_sync.c
index f98a765..afeaaa4 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -521,7 +521,7 @@ rb_mutex_synchronize(VALUE mutex, VALUE (*func)(VALUE arg), VALUE arg)
* completes. See the example under +Mutex+.
*/
static VALUE
-rb_mutex_synchronize_m(VALUE self, VALUE args)
+rb_mutex_synchronize_m(VALUE self)
{
if (!rb_block_given_p()) {
rb_raise(rb_eThreadError, "must be called with a block");