diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-05-29 14:00:13 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-05-29 14:00:13 +0100 |
commit | 644fc616b3b79d7301aeabb3a86910e10a5606d5 (patch) | |
tree | dd6bc438f30745e829e67a608524738ec0966149 /content/llcache.h | |
parent | 4acfda898b3ddda29e15318b604d3acf32a93b01 (diff) | |
download | netsurf-644fc616b3b79d7301aeabb3a86910e10a5606d5.tar.gz netsurf-644fc616b3b79d7301aeabb3a86910e10a5606d5.tar.bz2 |
attempt to purge low level cache on out of memory during fetch
Diffstat (limited to 'content/llcache.h')
-rw-r--r-- | content/llcache.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/content/llcache.h b/content/llcache.h index a9ed1861a..4a3521637 100644 --- a/content/llcache.h +++ b/content/llcache.h @@ -246,11 +246,15 @@ void llcache_finalise(void); nserror llcache_poll(void); /** - * Cause the low-level cache to attempt to perform cleanup. No - * guarantees are made as to whether or not cleanups will take + * Cause the low-level cache to attempt to perform cleanup. + * + * No guarantees are made as to whether or not cleanups will take * place and what, if any, space savings will be made. + * + * \param purge Any objects held in the cache that are safely removable will + * be freed regardless of the configured size limits. */ -void llcache_clean(void); +void llcache_clean(bool purge); /** * Retrieve a handle for a low-level cache object |