fiber: Introduce fiber.join() related methods
Introduce two functions * fiber.new() - create fiber, schedules it into the ready queue but doesn't call it and doesn't yield. Signature of the method is the same as for fiber.create * fiber.join() - waits until the specified fiber finishes its execution and returns result or error. Applicable only to joinable fibers. * fiber.set_joinable() - sets the fiber joinable flag Closes #1397
Showing
- src/fiber.c 5 additions, 2 deletionssrc/fiber.c
- src/fiber.h 3 additions, 1 deletionsrc/fiber.h
- src/lua/fiber.c 112 additions, 16 deletionssrc/lua/fiber.c
- test/app/fiber.result 168 additions, 0 deletionstest/app/fiber.result
- test/app/fiber.test.lua 82 additions, 0 deletionstest/app/fiber.test.lua
Loading
Please register or sign in to comment