From owner-freebsd-threads@FreeBSD.ORG Wed Jul 7 10:42:55 2004 Return-Path: Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 43D5516A4CE for ; Wed, 7 Jul 2004 10:42:55 +0000 (GMT) Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0E3FE43D53 for ; Wed, 7 Jul 2004 10:42:55 +0000 (GMT) (envelope-from tlambert2@mindspring.com) Received: from [192.168.167.39] (helo=wamui01.slb.atl.earthlink.net) by barry.mail.mindspring.net with esmtp (Exim 3.33 #1) id 1Bi9t6-0002GV-00; Wed, 07 Jul 2004 06:42:52 -0400 Message-ID: <7040592.1089196972901.JavaMail.root@wamui01.slb.atl.earthlink.net> Date: Wed, 7 Jul 2004 03:42:52 -0700 (GMT-07:00) From: Terry Lambert To: Petr Holub , threads@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Earthlink Zoo Mail 1.0 Subject: Re: sem_wait as cancellation point X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Terry Lambert List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jul 2004 10:42:55 -0000 Petr Holub wrote: > I wonder why sem_wait is not a pthread cancellation point on > FreeBSD-5. According to Linux man page: The Linux man page is totally irrelevant. Here's what the standards say: http://www.opengroup.org/onlinepubs/009695399/functions/xsh_chap02_09.html " Cancellation Points Cancellation points shall occur when a thread is executing the following functions: accept() mq_timedsend() putpmsg() sigtimedwait() ... getmsg() pselect() sem_wait() waitpid() ..." So it looks like it needs to be a cancellation point, if the thread cancellation option is fully supported. So before anyone else says it... "patches welcome". -- Terry