PostGIS  2.3.8dev-r@@SVN_REVISION@@

◆ DeletePrepGeomHashEntry()

static void DeletePrepGeomHashEntry ( MemoryContext  mcxt)
static

Definition at line 273 of file lwgeom_geos_prepared.c.

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

Referenced by PreparedCacheDelete().

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