Joel Sherrill <joel.sherr...@oarcorp.com> writes:

> On 01/12/2012 12:16 PM, Andreas Schwab wrote:
>> Ian Lance Taylor<i...@google.com>  writes:
>>
>>> The functions required are makecontext, getcontext, and setcontext.
>> Note that these functions are obsolescent in POSIX.1-2004 and removed
>> from POSIX.1-2008.
> Are there any alternatives? It is bad that Go is already starting
> out dependent on obsolete methods.  :(

I would be glad to use alternatives but I'm not aware of any.

The getcontext and setcontext functions are easy.  The harder one is
makecontext.  POSIX appears to be assuming that any use of makecontext
can be replaced with pthread_create, but if you care about efficiency
that simply isn't true.

Ian

Reply via email to