Skip to Content.
Sympa Menu

freetds - Re: About patch #582424 (thread safety)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: "Brian Bruns" <camber AT ais.org>
  • To: freetds AT franklin.oit.unc.edu
  • Subject: Re: About patch #582424 (thread safety)
  • Date: Thu, 15 Aug 2002 10:22:44 -0400



I think thread safety should default to off for the near term. There are
several broken implementations of gethostbyname_r() and other on some
platforms. They're old and you generally know if you have one. The
bigger reason is that I'd like to get some testing in on this on a larger
variety of platforms before turning it loose on the users at large.

Brian

> This patch (to configure.in) just add these line to it
>
> dnl Enable or disable thread safety
> AC_ARG_ENABLE(threadsafe,
> [ --enable-threadsafe compile for thread safetiness
> [default=yes]])
> if test "$enable_threadsafe" != "no" ; then
> CFLAGS="$CFLAGS -D_REENTRANT -D_THREAD_SAFE"
> fi
>
> It simple define _REENTRANT and _THREAD_SAFE for CC command line
> enabling thread safe.
> Note that thread safe is enable for default with this patch (it check
> for "no" disabling feature).
> Do you think this option should disabled by default?
> Note also that function like getaddrbyname are thread safe on some
> system (I know win32, it use a buffer for every thread).
>
> freddy77




Archive powered by MHonArc 2.6.24.

Top of Page