RE: getcontext

2011-03-17 Thread Cuero Bugot
But those are useful still today. E.g. the new Google Go language has coroutines built-in into it. The language runtime implements them with native assembler. Kind of off-topic, but Lua (www.lua.org) also has native coroutine support. They did implement it using setjmp. It is actually pretty

Re: getcontext

2011-03-17 Thread William Wagner
On 15/03/2011 16:42, Carmelo AMOROSO wrote: On 3/15/2011 5:23 PM, William Wagner wrote: Hello, I'm experimenting by trying to get google breakpad working under uclibc on x86 This requires the getcontext function. I assume it is not in uclibc (I was unable to find it)? Any ideas what would

Re: getcontext

2011-03-16 Thread Joakim Tjernlund
On 3/15/2011 5:23 PM, William Wagner wrote: Hello, I'm experimenting by trying to get google breakpad working under uclibc on x86 This requires the getcontext function. I assume it is not in uclibc (I was unable to find it)? Any ideas what would be involved in adding

Re: getcontext

2011-03-16 Thread Rich Felker
On Wed, Mar 16, 2011 at 09:16:48PM +0100, Joakim Tjernlund wrote: Impl. of portable CoRoutines, http://en.wikipedia.org/wiki/Coroutine , likes to use get/setcontext. Don't think there is anything else these can use. Coroutines can be implemented portably on top of pthreads and condition

Re: getcontext

2011-03-16 Thread Timo Teräs
On 03/17/2011 01:06 AM, Rich Felker wrote: On Wed, Mar 16, 2011 at 09:16:48PM +0100, Joakim Tjernlund wrote: Impl. of portable CoRoutines, http://en.wikipedia.org/wiki/Coroutine , likes to use get/setcontext. Don't think there is anything else these can use. Coroutines can be implemented

getcontext

2011-03-15 Thread William Wagner
Hello, I'm experimenting by trying to get google breakpad working under uclibc on x86 This requires the getcontext function. I assume it is not in uclibc (I was unable to find it)? Any ideas what would be involved in adding it? The glibc code is fairly impenetrable but it appears

Re: getcontext

2011-03-15 Thread Carmelo AMOROSO
On 3/15/2011 5:23 PM, William Wagner wrote: Hello, I'm experimenting by trying to get google breakpad working under uclibc on x86 This requires the getcontext function. I assume it is not in uclibc (I was unable to find it)? Any ideas what would be involved in adding it? The glibc code