freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- From: Dossy <dossy AT panoptic.com>
- To: TDS Development Group <freetds AT franklin.oit.unc.edu>
- Subject: Re: Coding style document
- Date: Fri, 14 Jun 2002 10:23:49 -0400
On 2002.06.13, James K. Lowden <jklowden AT speakeasy.org> wrote:
> On Thu, 13 Jun 2002 16:12:56 -0400 "Dossy" <dossy AT panoptic.com> wrote:
>
> > While we're at it, in a greedy fit of self-interest, can I ask that
> > thread-safe versions of the convert functions be created, so I can
> > ditch the ones I hacked together for nsfreetds?
>
> I have a thread-poor system. Could you be more explicit about what's not
> thread-safe in convert.c? I'm familiar with threading issues in general,
> but not with the unix system calls or structure names.
convert.c:
56 /*
57 this needs to go...
58 it won't handle binary or text/image when they are added
59 it's not thread safe
60 it works for the moment though til i decide how i really want to
handle it
61 */
62 static TDS_CHAR tmp_str[4096];
Global variables are not thread-safe.
I just found this URL about "Writing Reentrant and Thread-Safe Code"
which might be worth a quick read:
http://www.unet.univie.ac.at/aix/aixprggd/genprogc/writing_reentrant_thread_safe_code.htm
-- Dossy
--
Dossy Shiobara mail: dossy AT panoptic.com
Panoptic Computer Network web: http://www.panoptic.com/
"He realized the fastest way to change is to laugh at your own
folly -- then you can let go and quickly move on." (p. 70)
-
Re: Coding style document
, (continued)
- Re: Coding style document, Brian Bruns, 06/13/2002
- Re: Coding style document, Brian Bruns, 06/13/2002
- Re: Coding style document, Brian Bruns, 06/13/2002
- Re: Coding style document, Dossy, 06/13/2002
- Re: Coding style document, Lowden, James K, 06/13/2002
- Re: Coding style document, Dossy, 06/13/2002
- Re: Coding style document, Sam Denton, 06/13/2002
- Re: Coding style document, James K . Lowden, 06/13/2002
- Re: Coding style document, James K . Lowden, 06/13/2002
- Re: Coding style document, Winkless, Geoff, 06/14/2002
- Re: Coding style document, Dossy, 06/14/2002
- Re: Coding style document, ZIGLIO Frediano, 06/14/2002
- Re: Coding style document, Brian Bruns, 06/14/2002
- Re: Coding style document, James K . Lowden, 06/16/2002
Archive powered by MHonArc 2.6.24.