On Thu, Feb 19, 2004 at 02:55:01PM -0500, Jan Harkes wrote:
> 
> In any case, this is the non-trivial part of LWP. There are several
> 'recently introduced' portable C functions such as setjmp/longjmp and
> even better setcontext/getcontext. Ideally LWP would use those in
> preference to the assembly routines, except that getcontext and longjmp
> really don't match the semantics of returnto. At a first try, I
> couldn't (easily) implement either one given the other.
> 

Would it not be better to use another recently introduced library
called pthreads? ;)  The arla people have a pthread'ified version of
lwp which would mean that lwp would be immediately portable to all
platforms that support libpthread without having to hack assembly
language.... having done that for NetBSD/amd64 I can tell you that
would be a real bonus.

-- 
Brett Lymn

Reply via email to