#include <UT_ThreadSafeCache.h>
Classes | |
| class | unsafe_traverser |
| class | UT_CacheItem |
Public Member Functions | |
| UT_ThreadSafeCache (bool destroy=true) | |
| ~UT_ThreadSafeCache () | |
| void | setMaxMemory (int64 size_mb, bool prune=false) |
| void | setMaxMemoryBytes (int64 size_bytes, bool prune=false) |
| int64 | getMaxMemoryBytes () const |
| int64 | getMemoryUsage () const |
| int64 | entries () const |
| void | setUserData (void *data) |
| void | setCheckMemoryLimit (bool check) |
| bool | getCheckMemoryLimit () const |
| void | access (UT_CacheItem *item, void *parms=0) |
| void | accessUnreferenced (UT_CacheItem *item, void *parms=0) |
| Re-order list because of access. | |
| void | release (UT_CacheItem *item) |
| void | freeItem (UT_CacheItem *item) |
| void | freeAllItems () |
| void | pruneItems (int64 memory_limit) |
| unsafe_traverser | unsafe_begin () const |
| unsafe_traverser | unsafe_end () const |
| int64 | getFaults () const |
| Query the cache misses. | |
Friends | |
| class | UT_LimitedCache |
Definition at line 33 of file UT_ThreadSafeCache.h.
| UT_ThreadSafeCache< Lock >::UT_ThreadSafeCache | ( | bool | destroy = true |
) |
| UT_ThreadSafeCache< Lock >::~UT_ThreadSafeCache | ( | ) |
| void UT_ThreadSafeCache< Lock >::access | ( | UT_CacheItem * | item, | |
| void * | parms = 0 | |||
| ) | [inline] |
Definition at line 112 of file UT_ThreadSafeCache.h.
| void UT_ThreadSafeCache< Lock >::accessUnreferenced | ( | UT_CacheItem * | item, | |
| void * | parms = 0 | |||
| ) | [inline] |
| int64 UT_ThreadSafeCache< Lock >::entries | ( | void | ) | const [inline] |
Definition at line 95 of file UT_ThreadSafeCache.h.
| void UT_ThreadSafeCache< Lock >::freeAllItems | ( | ) |
| void UT_ThreadSafeCache< Lock >::freeItem | ( | UT_CacheItem * | item | ) |
| bool UT_ThreadSafeCache< Lock >::getCheckMemoryLimit | ( | ) | const [inline] |
Definition at line 104 of file UT_ThreadSafeCache.h.
| int64 UT_ThreadSafeCache< Lock >::getFaults | ( | ) | const [inline] |
| int64 UT_ThreadSafeCache< Lock >::getMaxMemoryBytes | ( | ) | const [inline] |
Definition at line 87 of file UT_ThreadSafeCache.h.
| int64 UT_ThreadSafeCache< Lock >::getMemoryUsage | ( | void | ) | const [inline] |
Definition at line 92 of file UT_ThreadSafeCache.h.
| void UT_ThreadSafeCache< Lock >::pruneItems | ( | int64 | memory_limit | ) |
| void UT_ThreadSafeCache< Lock >::release | ( | UT_CacheItem * | item | ) |
| void UT_ThreadSafeCache< Lock >::setCheckMemoryLimit | ( | bool | check | ) | [inline] |
Definition at line 102 of file UT_ThreadSafeCache.h.
| void UT_ThreadSafeCache< Lock >::setMaxMemory | ( | int64 | size_mb, | |
| bool | prune = false | |||
| ) |
| void UT_ThreadSafeCache< Lock >::setMaxMemoryBytes | ( | int64 | size_bytes, | |
| bool | prune = false | |||
| ) |
| void UT_ThreadSafeCache< Lock >::setUserData | ( | void * | data | ) | [inline] |
Definition at line 98 of file UT_ThreadSafeCache.h.
| unsafe_traverser UT_ThreadSafeCache< Lock >::unsafe_begin | ( | ) | const [inline] |
Definition at line 182 of file UT_ThreadSafeCache.h.
| unsafe_traverser UT_ThreadSafeCache< Lock >::unsafe_end | ( | ) | const [inline] |
Definition at line 184 of file UT_ThreadSafeCache.h.
friend class UT_LimitedCache [friend] |
Definition at line 231 of file UT_ThreadSafeCache.h.
1.5.9