void item_stats(struct default_engine *engine, ADD_STAT add_stat, const void *cookie) { pthread_mutex_lock(&engine->cache_lock); do_item_stats(engine, add_stat, cookie); pthread_mutex_unlock(&engine->cache_lock); }
void item_stats(struct default_engine *engine, ADD_STAT add_stat, const void *cookie) { cb_mutex_enter(&engine->items.lock); do_item_stats(engine, add_stat, cookie); cb_mutex_exit(&engine->items.lock); }
/* * Dumps statistics about slab classes */ void item_stats(ADD_STAT add_stats, void *c) { mutex_lock(&cache_lock); do_item_stats(add_stats, c); pthread_mutex_unlock(&cache_lock); }