Skip to Content.
Sympa Menu

freetds - About patch #582424 (thread safety)

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddyz77 AT tin.it>
  • To: FreeTDS <freetds AT franklin.oit.unc.edu>
  • Subject: About patch #582424 (thread safety)
  • Date: 15 Aug 2002 07:31:06 +0200


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