摘要: cache管理/** * Definition of the structure to keep track of the internal details of * the cache allocator. Touching any of these variables results in * undefined behavior. */typedef struct { /** Mutex to protect access to the structure */ pthread_mutex_t mutex; /** Name of the cache objects i... 阅读全文
posted @ 2012-08-25 15:33 neowei 阅读(238) 评论(0) 推荐(0)
摘要: 关联数组(hash_table)memcache 存储的主要数据结构staticpthread_cond_t maintenance_cond =PTHREAD_COND_INITIALIZER;typedef unsigned long int ub4; /* unsigned 4-byte quantities */typedef unsigned char ub1; /* unsigned 1-byte quantities *//* how many powers of 2's worth of buckets we use */static unsigned int hash 阅读全文
posted @ 2012-08-25 15:30 neowei 阅读(262) 评论(0) 推荐(0)