Samuel Williams
42130a64f0
Replace copy coroutine with pthread implementation.
2021-07-01 11:23:03 +12:00
Benoit Daloze
229cbeba8c
Fix -Wundef warnings in coroutine/*/Context.h
...
* See [Feature #17752 ]
Co-authored-by: xtkoba (Tee KOBAYASHI) <xtkoba+ruby@gmail.com>
2021-05-04 14:56:55 +02:00
Nobuyoshi Nakada
f1c36f2e6b
Added include guards to coroutine headers
2021-01-22 23:21:25 +09:00
卜部昌平
ce4ea956d2
function pointers are not void*
...
The same as 8427fca49b
.
2020-02-06 11:46:51 +09:00
Samuel Williams
bf04fe086b
Remove "All Rights Reserved." from Copyright statement.
2019-12-28 12:45:37 +13:00
Samuel Williams
f96216df8d
Remove "All Rights Reserved." from Copyright statement.
2019-12-28 12:41:47 +13:00
Yusuke Endoh
f4d9daf2b6
coroutine/ucontext/Context.c: define __EXTENSIONS__ explicitly
...
instead of ruby/config.h, per samuel's request.
dbfd4b780e (diff-7fd78c3cc8a19b7e0637502983ec26ff)
2019-12-05 22:24:58 +09:00
Yusuke Endoh
dbfd4b780e
coroutine/ucontext/Context.c: Include "ruby/config.h" for Solaris
...
getcontext, makecontext, and swapcontext seem to be available only when
`__EXTENSION__` is defined on Solaris.
2019-12-04 20:59:39 +09:00
Samuel Williams
001f187ed6
Make fiber_pool more conservative on platforms with limited address space.
...
We use COROUTINE_LIMITED_ADDRESS_SPACE to select platforms where address
space is 32-bits or less. Fiber pool implementation enables more book
keeping, and reduces upper limits, in order to minimise address space
utilisation.
2019-07-18 20:54:55 +12:00
Samuel Williams
6c6bf9ffcb
Add ucontext
coroutine implementation for generic fallback.
2019-06-26 20:19:53 +12:00