PostGIS  2.5.1dev-r@@SVN_REVISION@@

◆ GetPrepGeomHashEntry()

static PrepGeomHashEntry * GetPrepGeomHashEntry ( MemoryContext  mcxt)
static

Definition at line 250 of file lwgeom_geos_prepared.c.

References HASH_FIND, and PrepGeomHash.

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

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