From owner-freebsd-hackers Wed Sep 2 09:23:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA17541 for freebsd-hackers-outgoing; Wed, 2 Sep 1998 09:23:50 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from timingpdc.timing.com (timingpdc.timing.com [208.203.137.194]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA17533 for ; Wed, 2 Sep 1998 09:23:41 -0700 (PDT) (envelope-from chanders@timing.com) Received: from count.timing.com ([208.203.137.222]) by timingpdc.timing.com (Post.Office MTA v3.1.2 release (PO205-101c) ID# 103-49575U100L2S100) with ESMTP id AAA358; Wed, 2 Sep 1998 09:58:16 -0600 Received: from count.timing.com (localhost.timing.com [127.0.0.1]) by count.timing.com (8.8.7/8.8.7) with ESMTP id JAA12876; Wed, 2 Sep 1998 09:58:04 -0600 (MDT) (envelope-from chanders@count.timing.com) Message-Id: <199809021558.JAA12876@count.timing.com> X-Mailer: exmh version 2.0zeta 7/24/97 To: Terry Lambert cc: chanders@timing.com (Craig Anderson), freebsd-hackers@FreeBSD.ORG Subject: Re: pthread_cancel In-reply-to: Your message of "Wed, 02 Sep 1998 00:36:13 -0000." <199809020036.RAA09470@usr01.primenet.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Wed, 02 Sep 1998 09:58:03 -0600 From: chanders@timing.com (Craig Anderson) Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I'm looking at Appendix B of the O'Reilly book, Pthreads Programming. The section on cancellation mentions a change in setting cancellation state. A change in pthread_cancel() is not mentioned. Can someone suggest an alternative to pthread_cancel()? > > I am starting to use threads on a FreeBSD 2.2.6 system. > > Is there a pthread_cancel() function? > > No. FreeBSD provides Draft 4 pthreads, not the Draft 10 (Standard). > > FreeBSD -current is, right now, a bastard child of Draft 4 and > Standard, with the only way to tell them apart being one of the > few things that was braought up to Standard. 8-(. > > Use Draft 4 programming techniques, and you will be fine. See > the O'Reilly Pthreads book for exmaples of how to substitute code; > there is an appendix dedicated to the differences. > > > Terry Lambert > terry@lambert.org > --- > Any opinions in this posting are my own and not those of my present > or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message