diff options
author | Nobuyoshi Nakada <[email protected]> | 2020-12-28 19:52:14 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2020-12-28 19:52:14 +0900 |
commit | 09aca50fc4be0b8bffe89b3583aedfe9c5c3a732 (patch) | |
tree | abdef0a31a4a94af672953872fdb101bfa30f7d1 /cont.c | |
parent | 2eea9156eb02b0a0e857b10d41b9cead91be694f (diff) |
Adjusted styles [ci skip]
Diffstat (limited to 'cont.c')
-rw-r--r-- | cont.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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!"); } |