summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-12 19:27:20 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-11-12 19:27:20 +0900
commit0d52dce3a35c81df5129bc796eace5048827daf0 (patch)
tree705cabeb24947273036ef081f1bdb6a856fc9f2c
parent98de98fb70ba4a6f62488e9a73d9661d4f710d6e (diff)
strip trailing spaces and adjusted indents [ci skip]
-rw-r--r--cont.c26
-rw-r--r--thread_sync.c2
2 files changed, 14 insertions, 14 deletions
diff --git a/cont.c b/cont.c
index 8d13988df9..88ce28b1af 100644
--- a/cont.c
+++ b/cont.c
@@ -1825,19 +1825,19 @@ rb_fiber_initialize_kw(int argc, VALUE* argv, VALUE self, int kw_splat)
VALUE blocking = Qfalse;
if (kw_splat != RB_NO_KEYWORDS) {
- VALUE options = Qnil;
- VALUE arguments[2] = {Qundef};
-
- argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
- rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
-
- if (arguments[0] != Qundef) {
- blocking = arguments[0];
- }
-
- if (arguments[1] != Qundef) {
- pool = arguments[1];
- }
+ VALUE options = Qnil;
+ VALUE arguments[2] = {Qundef};
+
+ argc = rb_scan_args_kw(kw_splat, argc, argv, ":", &options);
+ rb_get_kwargs(options, fiber_initialize_keywords, 0, 2, arguments);
+
+ if (arguments[0] != Qundef) {
+ blocking = arguments[0];
+ }
+
+ if (arguments[1] != Qundef) {
+ pool = arguments[1];
+ }
}
return fiber_initialize(self, rb_block_proc(), rb_fiber_pool_default(pool), RTEST(blocking));
diff --git a/thread_sync.c b/thread_sync.c
index 86387ac2e7..e62e7a4b44 100644
--- a/thread_sync.c
+++ b/thread_sync.c
@@ -30,7 +30,7 @@ sync_wakeup(struct list_head *head, long max)
list_del_init(&cur->node);
if (cur->th->status != THREAD_KILLED) {
-
+
if (cur->th->scheduler != Qnil) {
rb_scheduler_unblock(cur->th->scheduler, cur->self, rb_fiberptr_self(cur->fiber));
} else {