From owner-freebsd-current Sat Dec 5 19:52:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id TAA14621 for freebsd-current-outgoing; Sat, 5 Dec 1998 19:52:29 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from cimlogic.com.au (cimlog.lnk.telstra.net [139.130.51.31]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id TAA14611 for ; Sat, 5 Dec 1998 19:52:24 -0800 (PST) (envelope-from jb@cimlogic.com.au) Received: (from jb@localhost) by cimlogic.com.au (8.9.1/8.9.1) id PAA27848; Sun, 6 Dec 1998 15:01:35 +1100 (EST) (envelope-from jb) From: John Birrell Message-Id: <199812060401.PAA27848@cimlogic.com.au> Subject: Re: Where is pthread_cancel()? In-Reply-To: <199812060343.VAA03006@friley-184-92.res.iastate.edu> from Patrick Hartling at "Dec 5, 98 09:43:25 pm" To: mystify@friley-184-92.res.iastate.edu (Patrick Hartling) Date: Sun, 6 Dec 1998 15:01:35 +1100 (EST) Cc: freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL40 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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