[freetds] dblib and thread safety

Michael Peppler mpeppler at peppler.org
Wed Sep 22 10:57:53 EDT 2004


On Wed, 2004-09-22 at 16:50, liam at inodes.org wrote:
> On Wed, Sep 22, 2004 at 09:23:37AM +0200, ZIGLIO, Frediano, VF-IT wrote:
> 
> > I see. However tds_ctx it's referenced in TDSSOCKET and used (only for
> > reading) in all libTDS functions. So you have active readed structures
> 
> Whether or not it's used for reading or writing is not relevant. The
> concern here is memory visibility, not mutual exclusion.

<various arguments snipped>

There's probably a reason why Sybase never attempted to make DBlibrary
thread-safe...

And why they have "normal" and _r versions of the Client Library and
Server library libs...

Michael
-- 
Michael Peppler                              Data Migrations, Inc.
mpeppler at peppler.org                       http://www.peppler.org/
Sybase T-SQL/OpenClient/OpenServer/C/Perl developer available for short
or long term contract positions - http://www.peppler.org/resume.html




More information about the FreeTDS mailing list