摘要: Hello, world!!! 阅读全文
posted @ 2020-05-15 18:24 neowei 阅读(105) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2019-06-23 20:46 neowei 阅读(3) 评论(0) 推荐(0)
摘要: 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 阅读(231) 评论(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 阅读(256) 评论(0) 推荐(0)