Lines Matching refs:cache
56 delete_object_cache(object_cache *cache)
58 delete cache;
63 object_cache_set_minimum_reserve(object_cache *cache, size_t objectCount)
70 object_cache_alloc(object_cache *cache, uint32 flags)
72 void* object = cache != NULL ? malloc(cache->objectSize) : NULL;
76 if (cache->objectConstructor != NULL)
77 cache->objectConstructor(cache->cookie, object);
84 object_cache_free(object_cache *cache, void *object, uint32 flags)
87 if (cache != NULL && cache->objectDestructor != NULL)
88 cache->objectDestructor(cache->cookie, object);
96 object_cache_reserve(object_cache *cache, size_t object_count, uint32 flags)
103 object_cache_get_usage(object_cache *cache, size_t *_allocatedMemory)