Re: getcontext/setcontext alternatives
Posted May 9, 2012 2:53 UTC (Wed) by
scottt (subscriber, #5028)
In reply to:
Coroutines by wahern
Parent article:
nPth - The new GNU portable threads library
A few questions:
- On which architecture did you run into the "thread-local-storage breaks when code trying to access a TLS object is run on a stack created with makecontext" problem?
- What's the alternative to getcontext() and friends? Going back to manually writing per arch "stack switching" code like cgreenlet/greenlet-asm.S?
I'm aware that {make,get,set}context() are considered deprecated and were only recently implemented in the glibc ARM port but they're still in use in some reasonably popular apps like the VNC server implementation in qemu etc.
(
Log in to post comments)