aboutsummaryrefslogtreecommitdiffstats
path: root/cont.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-28 19:52:14 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2020-12-28 19:52:14 +0900
commit09aca50fc4be0b8bffe89b3583aedfe9c5c3a732 (patch)
treeabdef0a31a4a94af672953872fdb101bfa30f7d1 /cont.c
parent2eea9156eb02b0a0e857b10d41b9cead91be694f (diff)
downloadruby-09aca50fc4be0b8bffe89b3583aedfe9c5c3a732.tar.gz
Adjusted styles [ci skip]
Diffstat (limited to 'cont.c')
-rw-r--r--cont.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/cont.c b/cont.c
index d2a347887b..524068b46e 100644
--- a/cont.c
+++ b/cont.c
@@ -593,7 +593,8 @@ fiber_pool_allocation_free(struct fiber_pool_allocation * allocation)
// Acquire a stack from the given fiber pool. If none are available, allocate more.
static struct fiber_pool_stack
-fiber_pool_stack_acquire(struct fiber_pool * fiber_pool) {
+fiber_pool_stack_acquire(struct fiber_pool * fiber_pool)
+{
struct fiber_pool_vacancy * vacancy = fiber_pool_vacancy_pop(fiber_pool);
if (DEBUG) fprintf(stderr, "fiber_pool_stack_acquire: %p used=%"PRIuSIZE"\n", (void*)fiber_pool->vacancies, fiber_pool->used);
@@ -1906,7 +1907,8 @@ rb_f_fiber_kw(int argc, VALUE* argv, int kw_splat)
if (scheduler != Qnil) {
fiber = rb_funcall_passing_block_kw(scheduler, rb_intern("fiber"), argc, argv, kw_splat);
- } else {
+ }
+ else {
rb_raise(rb_eRuntimeError, "No scheduler is available!");
}