HDK
|
#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 | release (UT_CacheItem *item) |
void | releaseAndDeallocate (UT_CacheItem *item) |
void | freeItem (UT_CacheItem *item) |
void | freeAllItems () |
void | pruneItems (int64 memory_limit) |
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 171 of file UT_ThreadSafeCache.h.
void UT_ThreadSafeCache< Lock >::dumpStats | ( | const char * | name | ) | const |
|
inline |
Definition at line 155 of file UT_ThreadSafeCache.h.
void UT_ThreadSafeCache< Lock >::freeAllItems | ( | ) |
void UT_ThreadSafeCache< Lock >::freeItem | ( | UT_CacheItem * | item | ) |
|
inline |
Definition at line 164 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 147 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 152 of file UT_ThreadSafeCache.h.
void UT_ThreadSafeCache< Lock >::pruneItems | ( | int64 | memory_limit | ) |
|
inline |
Definition at line 203 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 211 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 162 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 158 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 275 of file UT_ThreadSafeCache.h.
|
inline |
Definition at line 277 of file UT_ThreadSafeCache.h.