]> git.wh0rd.org - fontconfig.git/commit
Leave cache files mapped permanently.
authorKeith Packard <keithp@neko.keithp.com>
Mon, 4 Sep 2006 20:59:58 +0000 (13:59 -0700)
committerKeith Packard <keithp@neko.keithp.com>
Mon, 4 Sep 2006 20:59:58 +0000 (13:59 -0700)
commit8fe2104a1e5771ac8079a438fa21e00f946be8b3
tree4482d871b3ec4f1415ad44ee5ab1aca84b85d6e5
parent9a9fd975a1330e21f0184cdb237cfb2a2f19c098
Leave cache files mapped permanently.

Without reference counting on cache objects, there's no way to know when
an application is finished using objects pulled from the cache. Until some
kinf of cache reference counting can be done, leave all cache objects mapped
for the life of the library (until FcFini is called). To mitigate the cost
of this, ensure that each instance of a cache file is mapped only once.
src/fccache.c
src/fcinit.c
src/fcint.h