mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Remove unnecessary *
before the function name
This commit is contained in:
parent
5f8c73405e
commit
4aebbf44e9
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ static rb_atomic_t exited_count = 0;
|
||||||
void
|
void
|
||||||
ex_callback(rb_event_flag_t event, const rb_internal_thread_event_data_t *event_data, void *user_data)
|
ex_callback(rb_event_flag_t event, const rb_internal_thread_event_data_t *event_data, void *user_data)
|
||||||
{
|
{
|
||||||
switch(event) {
|
switch (event) {
|
||||||
case RUBY_INTERNAL_THREAD_EVENT_STARTED:
|
case RUBY_INTERNAL_THREAD_EVENT_STARTED:
|
||||||
RUBY_ATOMIC_INC(started_count);
|
RUBY_ATOMIC_INC(started_count);
|
||||||
break;
|
break;
|
||||||
|
@ -59,7 +59,7 @@ static VALUE
|
||||||
thread_register_callback(VALUE thread)
|
thread_register_callback(VALUE thread)
|
||||||
{
|
{
|
||||||
single_hook = rb_internal_thread_add_event_hook(
|
single_hook = rb_internal_thread_add_event_hook(
|
||||||
*ex_callback,
|
ex_callback,
|
||||||
RUBY_INTERNAL_THREAD_EVENT_STARTED |
|
RUBY_INTERNAL_THREAD_EVENT_STARTED |
|
||||||
RUBY_INTERNAL_THREAD_EVENT_READY |
|
RUBY_INTERNAL_THREAD_EVENT_READY |
|
||||||
RUBY_INTERNAL_THREAD_EVENT_RESUMED |
|
RUBY_INTERNAL_THREAD_EVENT_RESUMED |
|
||||||
|
@ -87,7 +87,7 @@ thread_register_and_unregister_callback(VALUE thread)
|
||||||
{
|
{
|
||||||
rb_internal_thread_event_hook_t * hooks[5];
|
rb_internal_thread_event_hook_t * hooks[5];
|
||||||
for (int i = 0; i < 5; i++) {
|
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;
|
if (!rb_internal_thread_remove_event_hook(hooks[4])) return Qfalse;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue