HDK
|
#include <UT_ThreadSafeCache.h>
Classes | |
struct | StatItem |
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 | release (UT_CacheItem *item) |
void | releaseAndDeallocate (UT_CacheItem *item) |
void | freeItem (UT_CacheItem *item) |
void | freeAllItems () |
void | pruneItems (int64 memory_limit) |
void | getStats (int64 &mem_used, int64 &mem_limit, UT_Array< StatItem > &breakdown) const |
void | dumpStats (const char *name) const |
unsafe_traverser | unsafe_begin () const |
unsafe_traverser | unsafe_end () const |
Definition at line 30 of file UT_ThreadSafeCache.h.
UT_ThreadSafeCache< Lock >::UT_ThreadSafeCache | ( | bool | destroy = true | ) |
UT_ThreadSafeCache< Lock >::~UT_ThreadSafeCache | ( | ) |
|
inline |
Definition at line 167 of file UT_ThreadSafeCache.h.
void UT_ThreadSafeCache< Lock >::dumpStats | ( | const char * | name | ) | const |
|
inline |
Definition at line 151 of file UT_ThreadSafeCache.h.
void UT_ThreadSafeCache< Lock >::freeAllItems | ( | ) |
void UT_ThreadSafeCache< Lock >::freeItem | ( | UT_CacheItem * | item | ) |
|
inline |
Definition at line 160 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 143 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 148 of file UT_ThreadSafeCache.h.
void UT_ThreadSafeCache< Lock >::getStats | ( | int64 & | mem_used, |
int64 & | mem_limit, | ||
UT_Array< StatItem > & | breakdown | ||
) | const |
void UT_ThreadSafeCache< Lock >::pruneItems | ( | int64 | memory_limit | ) |
|
inline |
Definition at line 199 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 207 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 158 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 |
||
) |
|
inline |
Definition at line 154 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 284 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 286 of file UT_ThreadSafeCache.h.