PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ DeletePrepGeomHashEntry()

static void DeletePrepGeomHashEntry ( MemoryContext  mcxt)
static

Definition at line 266 of file lwgeom_geos_prepared.c.

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 }
static HTAB * PrepGeomHash
const GEOSGeometry * geom
const GEOSPreparedGeometry * prepared_geom

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

Referenced by PreparedCacheDelete().

Here is the caller graph for this function: