kern/33951: pthread_cancel is ignored
Daniel Eischen
eischen at vigrid.com
Tue Feb 10 06:53:44 PST 2004
On Tue, 10 Feb 2004, David Xu wrote:
> Daniel Eischen wrote:
>
> >Synopsis: pthread_cancel is ignored
> >
> >State-Changed-From-To: open->closed
> >State-Changed-By: deischen
> >State-Changed-When: Mon Feb 9 21:30:56 PST 2004
> >State-Changed-Why:
> >This works under -current with libpthread and supposedly
> >under -stable with -lc_r.
> >
> >http://www.freebsd.org/cgi/query-pr.cgi?pr=33951
> >_______________________________________________
> >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"
> >
> >
> >
> >
> I had enabled asynchornous cancelling for M:N thread in libkse but not
> 1:1 thread,
> simplest way to support asynchronous cancelling for 1:1 is to use
> signal, but it will
> occupy a signal like Linux's SIGUSR1, another way is to use upcall,
> but it is
> slight complicated.
An upcall would be nice since it wouldn' use a signal. It could
be treated like a signal where you push it on the thread's stack
but use the upcall function instead of a signal handling function.
--
Dan Eischen
More information about the freebsd-threads
mailing list