This is the mail archive of the
guile@cygnus.com
mailing list for the Guile project.
Re: Linux pthreads and Guile COOP threads
- To: Mikael Djurfeldt <djurfeldt@nada.kth.se>
- Subject: Re: Linux pthreads and Guile COOP threads
- From: Jim Blandy <jimb@red-bean.com>
- Date: 10 Jul 1999 18:34:21 -0500
- Cc: bug-guile@gnu.org, guile@sourceware.cygnus.com, Xavier.Leroy@inria.fr
- References: <199907101853.UAA29680@thalamus.nada.kth.se>
The LinuxThreads implementation of pthreads is completely wedded to
the identification of stacks with threads. Each thread (except the
initial one) gets a block of stack aligned so that, if you round up
your stack pointer, you'll get a pointer to the thread's structure.
I don't think you can mix COOP threads and LinuxThreads unless you
can arrange to switch back to the main stack every time a LinuxThreads
function might be called.