Re: ucontext switch problem
Re: ucontext switch problem
- Subject: Re: ucontext switch problem
- From: Roger Pau Monné <email@hidden>
- Date: Thu, 17 Dec 2009 11:56:29 +0100
Hello,
Thanks for the reply, it was very helpful. Now I'm having a problem with the returning context of swapcontext. I've made something like a user-space thread library, and all the context of the threads return to the same main context (all uc_link point to the same ucontext_t), but it seems that only the first one to end is able to switch the context correctly, the next one reports a "Bus Error". This only happens when I use a signal handler to change contexts, so I'm guessing there's something wrong there, but I'm not able to debug it. Also, this program works on Linux, I've attached the source, if anyone could take a look, I've been trying to get it to work on Mac OS X for some days without any luck or progress.
Thanks for the help, Roger.
Attachment:
ariso.c
Description: Binary data
Attachment:
ariso.h
Description: Binary data
Attachment:
main.c
Description: Binary data
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden