From owner-freebsd-threads@FreeBSD.ORG Tue Apr 29 05:29:35 2003 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9777A37B401; Tue, 29 Apr 2003 05:29:35 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8274643F3F; Tue, 29 Apr 2003 05:29:34 -0700 (PDT) (envelope-from davidxu@freebsd.org) Received: from tiger (davidxu@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with SMTP id h3TCTXUp021502; Tue, 29 Apr 2003 05:29:33 -0700 (PDT) (envelope-from davidxu@freebsd.org) Message-ID: <000f01c30e4b$968f36d0$0701a8c0@tiger> From: "David Xu" To: "Daniel Eischen" References: Date: Tue, 29 Apr 2003 20:33:49 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 cc: freebsd-threads@freebsd.org Subject: Re: libpthread sigwait patch X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: David Xu List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Apr 2003 12:29:35 -0000 ----- Original Message -----=20 From: "Daniel Eischen" To: "David Xu" Cc: Sent: Tuesday, April 29, 2003 8:08 PM Subject: Re: libpthread sigwait patch > On Tue, 29 Apr 2003, David Xu wrote: >=20 > > Now, I am start to looking some signal code in libpthread, > > here is my first signal patch to allow MySQL server 4.0.10=20 > > run on my machine happily. >=20 > Yeah, that' what I was looking at (signal code). We need > a better way of setting up signals on running threads. > Right now they're just added to the pending set, but > thr_sched_switch() or the scheduler need to add them > to the frame. >=20 Yes, I would like to let scheduler install a signal frame,=20 in scheduler, it might not need to call THR_GETCONTEXT, just use already existing context, and we might have chance to=20 direct push signal from kernel upcall to thread, I think pthread_sigmask can do a context switch to let scheduler install a signal frame for it, these are my random ideas... probably you already have some code for these ? :-) > > http://people.freebsd.org/~davidxu/thr_sigwait.c.diff >=20 > I'll take a look. >=20 > --=20 > Dan Eischen >=20 > _______________________________________________ > freebsd-threads@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-threads > To unsubscribe, send any mail to = "freebsd-threads-unsubscribe@freebsd.org" >=20