Using thread local variables instead of the global ones
Jani Averbach
javerbach at EXTENDTHEREACH.COM
Fri Apr 28 13:23:48 EDT 2006
> -----Original Message-----
> From: Frank Warmerdam
> Sent: Thursday, April 27, 2006 5:57 PM
> Subject: Re: Using thread local variables instead of the global ones
>
>
> It has been my finding that __declspec(thread) on win32 only
> works for object code in an executable or a directly linked
> DLL. A DLL loaded at runtime using LoadLibrary() will not
> have it's threadlocal data properly initialized.
>
> This is the reason I ended up having to go to the much more
> complicated mechanisms I currently use in GDAL.
It also good to keep in mind that our plug-in system loads a layer DLL
at
runtime.
BR, Jani
Jani Averbach
SRC,LLC
SRC in Action:
http://www.DemographicsNow.com
Join SRC at Extend 2006 - Disruptive Technology
June 5-7, 2006 at the Hyatt Regency, Huntington Beach, CA
For more details, click here: http://www.extendthereach.com/extend06/
More information about the mapserver-dev
mailing list