зеркало из https://github.com/github/ruby.git
Remove unnecessary `*` before the function name
This commit is contained in:
Родитель
5f8c73405e
Коммит
4aebbf44e9
|
@ -59,7 +59,7 @@ static VALUE
|
|||
thread_register_callback(VALUE thread)
|
||||
{
|
||||
single_hook = rb_internal_thread_add_event_hook(
|
||||
*ex_callback,
|
||||
ex_callback,
|
||||
RUBY_INTERNAL_THREAD_EVENT_STARTED |
|
||||
RUBY_INTERNAL_THREAD_EVENT_READY |
|
||||
RUBY_INTERNAL_THREAD_EVENT_RESUMED |
|
||||
|
@ -87,7 +87,7 @@ thread_register_and_unregister_callback(VALUE thread)
|
|||
{
|
||||
rb_internal_thread_event_hook_t * hooks[5];
|
||||
for (int i = 0; i < 5; i++) {
|
||||
hooks[i] = rb_internal_thread_add_event_hook(*ex_callback, RUBY_INTERNAL_THREAD_EVENT_READY, NULL);
|
||||
hooks[i] = rb_internal_thread_add_event_hook(ex_callback, RUBY_INTERNAL_THREAD_EVENT_READY, NULL);
|
||||
}
|
||||
|
||||
if (!rb_internal_thread_remove_event_hook(hooks[4])) return Qfalse;
|
||||
|
|
Загрузка…
Ссылка в новой задаче