[geos-devel] RFC for Thread safe CAPI announced

Howard Butler hobu.inc at gmail.com
Fri Oct 17 15:25:03 EDT 2008


On Oct 17, 2008, at 2:06 PM, Frank Warmerdam wrote:
>
> I'd add that I'd like the RFC to define the context of the context
> structure.  I also think that the application visible handle should be
> declared:
>
>  type void *GEOSContextHandle_t;


I would suggest we change this to:

    typedef struct GEOSContextHandle_HS *GEOSContextHandle_t;

which makes it easier for the compiler to catch when we pass in an  
incorrect pointer.  For GDAL/OGR, if you compile with -DDEBUG, this  
pattern is currently applied, but it is not otherwise because we  
didn't want to risk breaking existing client code.

Howard



More information about the geos-devel mailing list