PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ DeletePrepGeomHashEntry()

static void DeletePrepGeomHashEntry ( MemoryContext  mcxt)
static

Definition at line 270 of file lwgeom_geos_prepared.c.

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

Referenced by PreparedCacheDelete().

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