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:
5
server.h
5
server.h
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user