9 Apr
2009
9 Apr
'09
5:39 a.m.
On Wed, Apr 08, 2009 at 11:47:38PM -0400, Nat Goodspeed wrote:
After a couple hours of searching, I have not yet turned up either an article or an example of the "sigaltstack + longjmp trick." Can anyone steer me to a reference implementation? I can't just hack something
Yes, look up GNU Pth: http://www.gnu.org/software/pth/ There you will find also a link to the "Portable Multithreading" paper which describes the trick. You probably do not need to do very much, since GNU Pth already *does* provide *context() equivalents, though with a slightly different interface.