多线程下载情形下,可能多线程访问fuzzy_handle,对其操作使用mutex锁保护。

This commit is contained in:
zhengchao
2015-12-08 13:01:49 +08:00
parent 461e50cdb0
commit 1e7800862e
3 changed files with 10 additions and 1 deletions

View File

@@ -263,6 +263,7 @@ struct _stream_para_t
long acc_scan_len;
unsigned long long total_len;
fuzzy_handle_t *fuzzy_hash_handle;
pthread_mutex_t fuzzy_mutex;
unsigned char query_point[8];
};
struct _Maat_scanner_t