mirror of
https://github.com/fumiama/simple-dict.git
synced 2026-06-28 07:50:24 +08:00
add timer killing
This commit is contained in:
2
server.c
2
server.c
@@ -50,7 +50,7 @@ static DICT* setdict;
|
|||||||
static uint32_t* items_len;
|
static uint32_t* items_len;
|
||||||
static CONFIG cfg;
|
static CONFIG cfg;
|
||||||
static pthread_attr_t attr;
|
static pthread_attr_t attr;
|
||||||
static volatile pthread_rwlock_t mu;
|
static pthread_rwlock_t mu;
|
||||||
|
|
||||||
#define DICTPOOLSZ (((uint32_t)-1)>>((sizeof(uint32_t)*8-DICTPOOLBIT)))
|
#define DICTPOOLSZ (((uint32_t)-1)>>((sizeof(uint32_t)*8-DICTPOOLBIT)))
|
||||||
static DICT* dict_pool[DICTPOOLSZ+1];
|
static DICT* dict_pool[DICTPOOLSZ+1];
|
||||||
|
|||||||
Reference in New Issue
Block a user