libpthread sigwait patch
David Xu
davidxu at freebsd.org
Tue Apr 29 05:29:35 PDT 2003
----- Original Message -----
From: "Daniel Eischen" <eischen at pcnet1.pcnet.com>
To: "David Xu" <davidxu at freebsd.org>
Cc: <freebsd-threads at freebsd.org>
Sent: Tuesday, April 29, 2003 8:08 PM
Subject: Re: libpthread sigwait patch
> On Tue, 29 Apr 2003, David Xu wrote:
>
> > Now, I am start to looking some signal code in libpthread,
> > here is my first signal patch to allow MySQL server 4.0.10
> > run on my machine happily.
>
> 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.
>
Yes, I would like to let scheduler install a signal frame,
in scheduler, it might not need to call THR_GETCONTEXT,
just use already existing context, and we might have chance to
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
>
> I'll take a look.
>
> --
> Dan Eischen
>
> _______________________________________________
> freebsd-threads at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-threads
> To unsubscribe, send any mail to "freebsd-threads-unsubscribe at freebsd.org"
>
More information about the freebsd-threads
mailing list