diff options
author | dormando <dormando@rydia.net> | 2016-12-31 00:33:37 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2017-01-07 18:22:56 -0800 |
commit | f4c550f664553ef996d84c4b19f24449dc739c7b (patch) | |
tree | e6420a83c46fe498cc779c2f9d94310f3760dbc8 /cache.h | |
parent | c2027ad42a727e26116e06592a3b4965731d30e7 (diff) | |
download | memcached-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.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |