PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ DeletePrepGeomHashEntry()

static void DeletePrepGeomHashEntry ( MemoryContext  mcxt)
static

Definition at line 191 of file lwgeom_geos_prepared.c.

192 {
193  void **key;
194  PrepGeomHashEntry *he;
195 
196  /* The hash key is the MemoryContext pointer */
197  key = (void *)&mcxt;
198 
199  /* Delete the projection object from the hash */
200  he = (PrepGeomHashEntry *) hash_search(PrepGeomHash, key, HASH_REMOVE, NULL);
201 
202  if (!he)
203  {
204  elog(ERROR, "DeletePrepGeomHashEntry: There was an error removing the geometry object from this MemoryContext (%p)", (void *)mcxt);
205  }
206 
207  he->prepared_geom = NULL;
208  he->geom = NULL;
209 }
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: