Exemplo n.º 1
0
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);
}
Exemplo n.º 2
0
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);
}
Exemplo n.º 3
0
Arquivo: thread.c Projeto: alxn/memc3
/*
 * 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);
}