summaryrefslogtreecommitdiff
path: root/cache.h
diff options
context:
space:
mode:
authordormando <dormando@rydia.net>2016-12-31 00:33:37 -0800
committerdormando <dormando@rydia.net>2017-01-07 18:22:56 -0800
commitf4c550f664553ef996d84c4b19f24449dc739c7b (patch)
treee6420a83c46fe498cc779c2f9d94310f3760dbc8 /cache.h
parentc2027ad42a727e26116e06592a3b4965731d30e7 (diff)
downloadmemcached-f4c550f664553ef996d84c4b19f24449dc739c7b.tar.gz
allow skipping thread-local cache locks
suffix cache was using a generic cache system, which uses a mutex lock. the pools are per-thread however.
Diffstat (limited to 'cache.h')
-rw-r--r--cache.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/cache.h b/cache.h
index c9ebdd8..27d98bf 100644
--- a/cache.h
+++ b/cache.h
@@ -101,6 +101,7 @@ void cache_destroy(cache_t* handle);
* the allocation cannot be satisfied.
*/
void* cache_alloc(cache_t* handle);
+void* do_cache_alloc(cache_t* handle);
/**
* Return an object back to the cache.
*
@@ -111,6 +112,7 @@ void* cache_alloc(cache_t* handle);
* @param ptr pointer to the object to return.
*/
void cache_free(cache_t* handle, void* ptr);
+void do_cache_free(cache_t* handle, void* ptr);
#endif
#endif