PostGIS  2.2.7dev-r@@SVN_REVISION@@
static void DeletePrepGeomHashEntry ( MemoryContext  mcxt)
static

Definition at line 251 of file lwgeom_geos_prepared.c.

References PrepGeomHashEntry::geom, PrepGeomHashEntry::prepared_geom, and PrepGeomHash.

Referenced by PreparedCacheDelete().

252 {
253  void **key;
254  PrepGeomHashEntry *he;
255 
256  /* The hash key is the MemoryContext pointer */
257  key = (void *)&mcxt;
258 
259  /* Delete the projection object from the hash */
260  he = (PrepGeomHashEntry *) hash_search(PrepGeomHash, key, HASH_REMOVE, NULL);
261 
262  if (!he)
263  {
264  elog(ERROR, "DeletePrepGeomHashEntry: There was an error removing the geometry object from this MemoryContext (%p)", (void *)mcxt);
265  }
266 
267  he->prepared_geom = NULL;
268  he->geom = NULL;
269 }
const GEOSPreparedGeometry * prepared_geom
const GEOSGeometry * geom
static HTAB * PrepGeomHash

Here is the caller graph for this function: