From owner-freebsd-current Sat Dec 5 20:05:04 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA15508 for freebsd-current-outgoing; Sat, 5 Dec 1998 20:05:04 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from friley-184-92.res.iastate.edu (friley-184-92.res.iastate.edu [129.186.184.92]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA15503 for ; Sat, 5 Dec 1998 20:05:01 -0800 (PST) (envelope-from mystify@friley-184-92.res.iastate.edu) Received: from friley-184-92.res.iastate.edu (localhost.res.iastate.edu [127.0.0.1]) by friley-184-92.res.iastate.edu (8.9.1/8.9.1) with ESMTP id WAA05227; Sat, 5 Dec 1998 22:04:47 -0600 (CST) (envelope-from mystify@friley-184-92.res.iastate.edu) Message-Id: <199812060404.WAA05227@friley-184-92.res.iastate.edu> To: John Birrell cc: freebsd-current@FreeBSD.ORG Subject: Re: Where is pthread_cancel()? In-reply-to: Message from John Birrell of "Sun, 06 Dec 1998 15:01:35 +1100." <199812060401.PAA27848@cimlogic.com.au> Date: Sat, 05 Dec 1998 22:04:46 -0600 From: Patrick Hartling Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG John Birrell wrote: } 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. I didn't think so, and it's not being used that way in the library in question. I was thinking that it could just be a temporary substitute if in fact the absence of pthread_cancel() was a bug. } Check the mail archives for a more detailed answer. Okay, I will do that. Thanks a bunch. -Patrick Patrick L. Hartling | Research Assistant, ICEMT mystify@friley-184-92.res.iastate.edu | Carver Lab - 95E Black Engineering http://www.public.iastate.edu/~oz/ | http://www.icemt.iastate.edu/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message