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

fix: mutex

This commit is contained in:
源文雨
2022-04-10 16:14:14 +08:00
parent 465afde645
commit cf768d96da
3 changed files with 70 additions and 60 deletions

1
dict.h
View File

@@ -15,6 +15,7 @@ typedef struct DICT DICT;
#define DICT_LOCK_UN 0x00
#define DICT_LOCK_SH 0x01
#define DICT_LOCK_EX 0x02
#define DICT_LOCKING_EX 0x04
void close_dict(uint8_t lock_type, uint32_t index, pthread_rwlock_t* mu);
int fill_md5(pthread_rwlock_t* mu);