1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-21 11:20:34 +08:00

add thread pool & optimize defines

This commit is contained in:
源文雨
2022-10-14 22:31:58 +08:00
parent 424e5ef484
commit 95c09e6dbc
8 changed files with 284 additions and 203 deletions

11
dict.h
View File

@@ -11,8 +11,13 @@
#include "dict.h"
#include "server.h"
#define DICTKEYSZ 127
#define DICTDATSZ 127
#ifndef DICTKEYSZ
#define DICTKEYSZ 127
#endif
#ifndef DICTDATSZ
#define DICTDATSZ 127
#endif
struct dict_t {
char key[DICTKEYSZ];
char data[DICTDATSZ];
@@ -145,4 +150,4 @@ static inline int is_dict_md5_equal(uint8_t* digest) {
#endif
}
#endif
#endif