Searched refs:fiber_ctx (Results 1 – 1 of 1) sorted by relevance
17 ucontext_t fiber_ctx; variable40 if (getcontext(&fiber_ctx) == -1) { in main()44 fiber_ctx.uc_stack.ss_sp = fiber_stack; in main()45 fiber_ctx.uc_stack.ss_size = sizeof(fiber_stack); in main()46 fiber_ctx.uc_link = &main_ctx; in main()47 makecontext(&fiber_ctx, fiber, 0); in main()52 if (swapcontext(&main_ctx, &fiber_ctx) == -1) { in main()