added object_cache_reserve to allow cache users to pre-allocate slabs.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20912 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Hugo Santos
2007-04-29 21:45:23 +00:00
parent 11debaf6e4
commit 39af445966
2 changed files with 40 additions and 5 deletions
+3
View File
@@ -46,6 +46,9 @@ void delete_object_cache(object_cache *cache);
void *object_cache_alloc(object_cache *cache, uint32 flags);
void object_cache_free(object_cache *cache, void *object);
status_t object_cache_reserve(object_cache *cache, size_t object_count,
uint32 flags);
#ifdef __cplusplus
}
#endif