aboutsummaryrefslogtreecommitdiffstats
path: root/thread.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2019-08-26 15:53:57 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2019-08-27 15:52:26 +0900
commite3fc30564e9466d6926f9d25a090dcf787bd5c33 (patch)
treed18de0bd0a65d94cf71789d05888e46fd924fcd1 /thread.c
parentbc3e7924bc66d3ef77b219c72f3e59cc154550a3 (diff)
downloadruby-e3fc30564e9466d6926f9d25a090dcf787bd5c33.tar.gz
rb_thread_create now free from ANYARGS
After 5e86b005c0f2ef30df2f9906c7e2f3abefe286a2, I now think ANYARGS is dangerous and should be extinct. This commit deletes ANYARGS from rb_thread_create, which seems very safe to do.
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/thread.c b/thread.c
index db4326bd31..57ccfef8b7 100644
--- a/thread.c
+++ b/thread.c
@@ -810,7 +810,7 @@ thread_start_func_2(rb_thread_t *th, VALUE *stack_start)
}
static VALUE
-thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(ANYARGS))
+thread_create_core(VALUE thval, VALUE args, VALUE (*fn)(void *))
{
rb_thread_t *th = rb_thread_ptr(thval), *current_th = GET_THREAD();
int err;
@@ -944,7 +944,7 @@ thread_initialize(VALUE thread, VALUE args)
}
VALUE
-rb_thread_create(VALUE (*fn)(ANYARGS), void *arg)
+rb_thread_create(VALUE (*fn)(void *), void *arg)
{
return thread_create_core(rb_thread_alloc(rb_cThread), (VALUE)arg, fn);
}