1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-20 10:50:23 +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

4
dict.h
View File

@@ -19,9 +19,9 @@ typedef struct DICT DICT;
int init_dict(char* file_path);
void close_dict(uint8_t lock_type, uint32_t index);
int fill_md5();
FILE* get_dict_fp(uint32_t index);
FILE* get_dict_fp_wr();
off_t get_dict_size();
FILE* get_unique_dict_fp();
FILE* get_dict_fp_rd();
int is_md5_equal(uint8_t* digest);
FILE *open_dict(uint8_t lock_type, uint32_t index);