[postgis-devel] [geos-devel] initGEOS semantic ?

strk strk at keybit.net
Sat Apr 17 05:14:59 PDT 2010


For the record, I verified that up to 3.0.0
the semantic was indeed NOT to allocate any new
structures, see:

 http://trac.osgeo.org/geos/browser/branches/3.0/capi/geos_c.cpp

Thus I think we should go back there.

--strk;


On Sat, Apr 17, 2010 at 01:22:22PM +0200, strk wrote:
> I tought initGEOS() [ the non-rehentrant version ]
> was always returning the same handle, a singleton.
> 
> Code reveals that's not the case, which means
> old clients (like postgis) end up allocating
> lots of contexts and leat them leak.
> 
> So, is there any reason not to return a singleton ?
> 
> --strk;
> 
>   ()   Free GIS & Flash consultant/developer
>   /\   http://strk.keybit.net/services.html
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel

-- 

  ()   Free GIS & Flash consultant/developer
  /\   http://strk.keybit.net/services.html



More information about the postgis-devel mailing list