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

Definition at line 266 of file lwgeom_geos_prepared.c.

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

Referenced by PreparedCacheDelete().

267 {
268  void **key;
269  PrepGeomHashEntry *he;
270 
271  /* The hash key is the MemoryContext pointer */
272  key = (void *)&mcxt;
273 
274  /* Delete the projection object from the hash */
275  he = (PrepGeomHashEntry *) hash_search(PrepGeomHash, key, HASH_REMOVE, NULL);
276 
277  if (!he)
278  {
279  elog(ERROR, "DeletePrepGeomHashEntry: There was an error removing the geometry object from this MemoryContext (%p)", (void *)mcxt);
280  }
281 
282  he->prepared_geom = NULL;
283  he->geom = NULL;
284 }
const GEOSPreparedGeometry * prepared_geom
const GEOSGeometry * geom
static HTAB * PrepGeomHash

Here is the caller graph for this function: