Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Dec 2003 11:08:15 -0600
From:      "Jacques A. Vidrine" <nectar@FreeBSD.org>
To:        Daniel Eischen <eischen@vigrid.com>
Cc:        current@freebsd.org
Subject:   Re: nss and pthreads and wine, oh my!
Message-ID:  <20031210170815.GA77342@madman.celabo.org>
In-Reply-To: <Pine.GSO.4.10.10312100036420.12685-100000@pcnet5.pcnet.com>
References:  <200312092305.27056.craig@xfoil.gank.org> <Pine.GSO.4.10.10312100036420.12685-100000@pcnet5.pcnet.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031210170815.GA77342>