From owner-freebsd-threads@FreeBSD.ORG Mon May 19 14:48:36 2003 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 2BAC437B401 for ; Mon, 19 May 2003 14:48:36 -0700 (PDT) Received: from h132-197-179-27.gte.com (h132-197-179-27.gte.com [132.197.179.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2F8B143FAF for ; Mon, 19 May 2003 14:48:35 -0700 (PDT) (envelope-from ak03@gte.com) Received: from kanpc.gte.com (ak03@localhost [127.0.0.1]) h4JLmX3D091039 for ; Mon, 19 May 2003 17:48:33 -0400 (EDT) (envelope-from ak03@kanpc.gte.com) Received: (from ak03@localhost) by kanpc.gte.com (8.12.9/8.12.9/Submit) id h4JLmXJm091038; Mon, 19 May 2003 17:48:33 -0400 (EDT) Date: Mon, 19 May 2003 17:48:33 -0400 From: Alexander Kabaev To: freebsd-threads@FreeBSD.ORG Message-Id: <20030519174833.28db3cd2.ak03@gte.com> Organization: Verizon Data Services X-Mailer: Sylpheed version 0.8.11claws156 (GTK+ 1.2.10; i386-portbld-freebsd5.1) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: _pthread_cond_wait vs. __pthread_condwait X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 May 2003 21:48:36 -0000 The _pthread_cond_wait function has this at the beginning: _thr_enter_cancellation_point(curthread); if (cond == NULL) { _thr_leave_cancellation_point(curthread); and this at the end: _thr_leave_cancellation_point(curthread); __pthread_cond_wait is defined as _thr_enter_cancellation_point(curthread); ret = _pthread_cond_wait(cond, mutex); _thr_leave_cancellation_point(curthread); return (ret); So what is the difference between the two? Should't cancellantion checks ve removed from _pthread_cond_wait? -- Alexander Kabaev