Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Dec 1998 15:01:35 +1100 (EST)
From:      John Birrell  <jb@cimlogic.com.au>
To:        mystify@friley-184-92.res.iastate.edu (Patrick Hartling)
Cc:        freebsd-current@FreeBSD.ORG
Subject:   Re: Where is pthread_cancel()?
Message-ID:  <199812060401.PAA27848@cimlogic.com.au>
In-Reply-To: <199812060343.VAA03006@friley-184-92.res.iastate.edu> from Patrick Hartling at "Dec 5, 98 09:43:25 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
Patrick Hartling wrote:
> I'm attempting to port a multithreaded library from IRIX to FreeBSD-current,
> and I was wondering why there is no pthread_cancel() in libc_r.  I am not up
> on the full Pthreads Draft 10 standard, but I thought pthread_cancel() was
> part of it.  Am I mistaken?  Should I just use pthread_kill() and not worry
> about this?  Thanks.

I checked the standard after the recent discussion about pthread_cancel() and
it's not optional, so the fact that it's not in libc_r is a bug. I think
the result of the discussion was that someone would be working on it
soon (having done some work already). pthread_kill() isn't really a 
substitute because that just dispatches a signal to the thread.

Check the mail archives for a more detailed answer.

-- 
John Birrell - jb@cimlogic.com.au; jb@freebsd.org http://www.cimlogic.com.au/
CIMlogic Pty Ltd, GPO Box 117A, Melbourne Vic 3001, Australia +61 418 353 137

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



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