8cc7dee111a52eed9f6e65a01e67730af13b43b4 braney Thu Jun 6 15:30:22 2019 -0700 ongoing work on trackDb caching in shared memory diff --git src/hg/inc/trackDb.h src/hg/inc/trackDb.h index c163803..9135ad7 100644 --- src/hg/inc/trackDb.h +++ src/hg/inc/trackDb.h @@ -694,22 +694,22 @@ * or a tab-separated or tagStorm file with a foreign key specified by the "meta" tag. */ char *trackDbViewSetting(struct trackDb *tdb, char *name); /* Return view setting from tdb, but *not* any of it's parents. */ struct trackDb *lmCloneTdb(struct lm *lm, struct trackDb *tdb, struct trackDb *parent, struct hash *superHash); /* clone a single tdb structure. Will clone its children if it has any */ struct trackDb *lmCloneTdbList(struct lm *lm, struct trackDb *list, struct trackDb *parent, struct hash *superHash); /* clone a list of tdb structures. */ struct trackDb *lmCloneSuper(struct lm *lm, struct trackDb *tdb, struct hash *superHash); /* clone a super track tdb structure. */ -struct trackDb *cloneTdbListToSharedMem(struct trackDb *list, unsigned long size); +void trackDbCloneTdbListToSharedMem(char *db, struct trackDb *list, unsigned long size); /* Allocate shared memory and clone trackDb list into it. */ -struct trackDb *mapSharedMemTrackDb(char *file, unsigned long address, unsigned long size); -/* Use a hunk of shared memory as our trackDb list. */ +struct trackDb *trackDbCache(char *db); +/* Check to see if this db has a cached trackDb. */ #endif /* TRACKDB_H */