Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2002 16:40:46 -0600
From:      Alfred Perlstein <bright@mu.org>
To:        Archie Cobbs <archie@dellroad.org>
Cc:        Dan Eischen <eischen@vigrid.com>, arch@FreeBSD.ORG
Subject:   Re: Request for review: getcontext, setcontext, etc
Message-ID:  <20020106164046.A14427@elvis.mu.org>
In-Reply-To: <200201062000.g06K0La35178@arch20m.dellroad.org>; from archie@dellroad.org on Sun, Jan 06, 2002 at 12:00:21PM -0800
References:  <20020106032709.A82406@elvis.mu.org> <200201062000.g06K0La35178@arch20m.dellroad.org>

next in thread | previous in thread | raw e-mail | index | archive | help
* Archie Cobbs <archie@dellroad.org> [020106 14:09] wrote:
> Alfred Perlstein writes:
> > > Is there a reason that getcontext and setcontext need to be
> > > system calls?
> > 
> > Atomicity?
> 
> That can't be why.. otherwise this would imply that just because
> something is written in assembly instead of C that it could have
> atomicity problems.
> 
> BTW, I think this adding these is a great idea.. e.g., the pth port
> can take advantage of these as well.

http://www.opengroup.org/onlinepubs/007908799/xsh/ucontext.h.html

Defines a signal mask switchover, that's why I assumed some degree
of atomicity help from the kernel.

-- 
-Alfred Perlstein [alfred@freebsd.org]
'Instead of asking why a piece of software is using "1970s technology,"
 start asking why software is ignoring 30 years of accumulated wisdom.'
Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020106164046.A14427>