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

add mutex

This commit is contained in:
源文雨
2022-04-04 18:03:18 +08:00
parent fdeb306c9b
commit a1af0a7e8e
6 changed files with 152 additions and 149 deletions

View File

@@ -1,9 +1,14 @@
#ifndef _SERVER_H_
#define _SERVER_H_
#include <stdint.h>
#define THREADCNT 16
#define MAXWAITSEC 10
// DICTPOOLBIT must be lower than 4*8 = 32
#define DICTPOOLBIT 16
enum SERVERCMD {CMDGET, CMDCAT, CMDMD5, CMDACK, CMDEND, CMDSET, CMDDEL, CMDDAT};
struct CMDPACKET {