Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Jul 2000 18:42:41 -0500
From:      "Richard Seaman, Jr." <dick@tar.com>
To:        Alfred Perlstein <bright@wintelcom.net>
Cc:        Tan Juay Kwang <tanjk@i-dns.net>, freebsd-questions@FreeBSD.ORG
Subject:   Re: pthreads on 4.0-STABLE
Message-ID:  <20000720184241.E404@tar.com>
In-Reply-To: <20000720155412.R13979@fw.wintelcom.net>; from bright@wintelcom.net on Thu, Jul 20, 2000 at 03:54:12PM -0700
References:  <NEBBLKHLGDECFCNMHPEECEMPCOAA.tanjk@i-dns.net> <20000720162831.B404@tar.com> <20000720173001.C404@tar.com> <20000720155412.R13979@fw.wintelcom.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Jul 20, 2000 at 03:54:12PM -0700, Alfred Perlstein wrote:

> Shouldn't it be an easy enough hack to use pthread_once along with
> pthread_get/set_specific when _THREAD_SAFE is defined in gethostbyname?

Sure.  Of course, you really need to deal with gethostbyaddr, and
probably a number of other calls too.  Plus, since a number of
other threads packages have the "_r" functions, for portability
reasons you will probably want to still implement these.  Also,
this allows you to pass pointers globaly without worrying about
whether the thread that owns the thread specific data has gone
away.

-- 
Richard Seaman, Jr.        email:    dick@tar.com
5182 N. Maple Lane         phone:    262-367-5450
Nashotah WI 53058            fax:    262-367-5852


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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