mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
strip trailing spaces and adjusted indents [ci skip]
This commit is contained in:
parent
98de98fb70
commit
0d52dce3a3
2 changed files with 12 additions and 12 deletions
22
cont.c
22
cont.c
|
@ -1825,19 +1825,19 @@ rb_fiber_initialize_kw(int argc, VALUE* argv, VALUE self, int kw_splat)
|
||||||
VALUE blocking = Qfalse;
|
VALUE blocking = Qfalse;
|
||||||
|
|
||||||
if (kw_splat != RB_NO_KEYWORDS) {
|
if (kw_splat != RB_NO_KEYWORDS) {
|
||||||
VALUE options = Qnil;
|
VALUE options = Qnil;
|
||||||
VALUE arguments[2] = {Qundef};
|
VALUE arguments[2] = {Qundef};
|
||||||
|
|
||||||
argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
|
argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
|
||||||
rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
|
rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
|
||||||
|
|
||||||
if (arguments[0] != Qundef) {
|
if (arguments[0] != Qundef) {
|
||||||
blocking = arguments[0];
|
blocking = arguments[0];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (arguments[1] != Qundef) {
|
if (arguments[1] != Qundef) {
|
||||||
pool = arguments[1];
|
pool = arguments[1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return fiber_initialize(self, rb_block_proc(), rb_fiber_pool_default(pool), RTEST(blocking));
|
return fiber_initialize(self, rb_block_proc(), rb_fiber_pool_default(pool), RTEST(blocking));
|
||||||
|
|
|
@ -30,7 +30,7 @@ sync_wakeup(struct list_head *head, long max)
|
||||||
list_del_init(&cur->node);
|
list_del_init(&cur->node);
|
||||||
|
|
||||||
if (cur->th->status != THREAD_KILLED) {
|
if (cur->th->status != THREAD_KILLED) {
|
||||||
|
|
||||||
if (cur->th->scheduler != Qnil) {
|
if (cur->th->scheduler != Qnil) {
|
||||||
rb_scheduler_unblock(cur->th->scheduler, cur->self, rb_fiberptr_self(cur->fiber));
|
rb_scheduler_unblock(cur->th->scheduler, cur->self, rb_fiberptr_self(cur->fiber));
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue