From owner-freebsd-current@FreeBSD.ORG Wed Dec 10 09:08:19 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1091316A4CF for ; Wed, 10 Dec 2003 09:08:19 -0800 (PST) Received: from gw.celabo.org (gw.celabo.org [208.42.49.153]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72E4C43D2B for ; Wed, 10 Dec 2003 09:08:16 -0800 (PST) (envelope-from nectar@celabo.org) Received: from madman.celabo.org (madman.celabo.org [10.0.1.111]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "madman.celabo.org", Issuer "celabo.org CA" (verified OK)) by gw.celabo.org (Postfix) with ESMTP id D86A85482B; Wed, 10 Dec 2003 11:08:15 -0600 (CST) Received: by madman.celabo.org (Postfix, from userid 1001) id 777D86D455; Wed, 10 Dec 2003 11:08:15 -0600 (CST) Date: Wed, 10 Dec 2003 11:08:15 -0600 From: "Jacques A. Vidrine" To: Daniel Eischen Message-ID: <20031210170815.GA77342@madman.celabo.org> References: <200312092305.27056.craig@xfoil.gank.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Url: http://www.celabo.org/ User-Agent: Mutt/1.5.4i-ja.1 cc: current@freebsd.org Subject: Re: nss and pthreads and wine, oh my! X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2003 17:08:19 -0000 On Wed, Dec 10, 2003 at 12:39:59AM -0500, Daniel Eischen wrote: > Yes, I think libc should only call locking primitives when > __isthread != 0. Hi Dan, You don't mean that, do you? You seem to be implying that pthread functions would have to be invoked in libc something like this: result = __isthreaded ? _pthread_mutex_trylock(&foo_lock) : 0; if (result != 0) /* error */; or use the macros in reentrant.h. But, maybe I'm just misunderstanding you. I believe the thread functions are `stubbed out' in the non-thread case? Cheers, -- Jacques Vidrine NTT/Verio SME FreeBSD UNIX Heimdal nectar@celabo.org jvidrine@verio.net nectar@freebsd.org nectar@kth.se