PostGIS  2.4.9dev-r@@SVN_REVISION@@

◆ GetPrepGeomHashEntry()

static PrepGeomHashEntry * GetPrepGeomHashEntry ( MemoryContext  mcxt)
static

Definition at line 254 of file lwgeom_geos_prepared.c.

References HASH_FIND, and PrepGeomHash.

Referenced by PreparedCacheDelete(), PrepGeomCacheBuilder(), and PrepGeomCacheCleaner().

255 {
256  void **key;
257  PrepGeomHashEntry *he;
258 
259  /* The hash key is the MemoryContext pointer */
260  key = (void *)&mcxt;
261 
262  /* Return the projection object from the hash */
263  he = (PrepGeomHashEntry *) hash_search(PrepGeomHash, key, HASH_FIND, NULL);
264 
265  return he;
266 }
#define HASH_FIND(hh, head, keyptr, keylen, out)
Definition: uthash.h:132
static HTAB * PrepGeomHash
Here is the caller graph for this function: