DragonFly users List (threaded) for 2007-01
DragonFly BSD
DragonFly users List (threaded) for 2007-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

[no subject]


Date:

e> <007301c736ac$5c99da10$1200a8c0@gsicomp.on.ca> <45A838AA.9030008@fs.ei.tum.de> <200701130306.l0D36JX8007342@apollo.backplane.com> <45A87472.3040108@fs.ei.tum.de> <45A879FF.8060407@exemail.com.au> <200701130649.l0D6nE8j008759@apollo. backplane.com> <009301c73746$cdce3470$1200a8c0@gsicomp.on.ca> <200701132000.l0DK0QsA020885@ap ollo.backplane.com> <00b101c738XXXXX>OXLXS(OFrom: Matthew Dillon <dillon@apollo.backplane.com> <200701152301.l0FN1BR5039049@apollo.backplane.com>
From: "Simon 'corecode' Schubert" <corecode@fs.ei.tum.de>
Subject: Re: Request for swapcontext and getcontext to be ported to our libc
 [ revision 3 ]
Date: Tue, 16 Jan 2007 01:05:32 +0100
BestServHost: crater.dragonflybsd.org
List-Post: <mailto:users@crater.dragonflybsd.org>
List-Subscribe: <mailto:users-request@crater.dragonflybsd.org?body=subscribe>
List-Unsubscribe: <mailto:users-request@crater.dragonflybsd.org?body=unsubscribe>
List-Help: <mailto:users-request@crater.dragonflybsd.org?body=help>
List-Owner: <mailto:owner-users@crater.dragonflybsd.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
In-Reply-To: <200701152301.l0FN1BR5039049@apollo.backplane.com>
Sender: users-errors@crater.dragonflybsd.org
Errors-To: users-errors@crater.dragonflybsd.org
Lines: 31
NNTP-Posting-Host: 216.240.41.25
X-Trace: 1168907209 crater_reader.dragonflybsd.org 830 216.240.41.25
Xref: crater_reader.dragonflybsd.org dragonfly.users:8622

users-errors@crater.dragonflybsd.org wrote:

^^^^ matt, your email seems mangled

>     There is one more issue, and that is an atomicy issue.  We want the
>     new signal mask to be set simultaniously with the restoration of the
>     context (or most of it).  This means that all signals must be masked
>     temporarily while restoring the context.  But don't worry about it,
>     I can handle that part as well.  It does mean an extra system call
>     but that isn't our concern at the moment.

so the sequence is something like

sigprocmask(SIG_BLOCK, ALL, &ocntx->uc_sigmask);
swap registers+stacks
sigprocmask(SIG_SETMASK, &ncntx->us_sigmask, NULL);

for swapcontext.

am i wrong or is setcontext essentially

swapcontext(&tmpcontext, newcntx); ?

cheers
  simon

-- 
Serve - BSD     +++  RENT this banner advert  +++    ASCII Ribbon   /"\
Work - Mac      +++  space for low ��� NOW!1  +++      Campaign     \ /
Party Enjoy Relax   |   http://dragonflybsd.org      Against  HTML   \
Dude 2c 2 the max   !   http://golden-apple.biz       Mail + News   / \



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]