[Mapserver-dev] Thread safe issue

Frank Warmerdam warmerdam at pobox.com
Thu Feb 27 14:22:59 EST 2003

John Newton wrote:
> In several version of gd.lib we have noticed that gdImageStringTTF() is not
> thread safe due to font caching logic.
> Could a new TLOCK be added to protect calls to gdImageStringTTF()?
> thanks,
> John Newton


Are you willing to test it if I commit changes to CVS to protect all
gdImageStringTTF calls with a lock?  Note that thanks to Dylan we now have
a gd support contract, and if there are any threading issues in gd that people
need fixed we could pursue the issue with the maintainer.   In this case, I
assume the problem is down in the freetype library, so it likely isn't worth
bugging the gd maintainer.

Best regards,
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | Geospatial Programmer for Rent

More information about the mapserver-dev mailing list