mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-10 02:04:39 +08:00
fix: #520 - calling init before initialize mutexs is bad
This commit is contained in:
parent
bb9c53ae7b
commit
8b10107c40
1 changed files with 3 additions and 3 deletions
|
@ -2019,12 +2019,12 @@ __attribute__((force_align_arg_pointer))
|
|||
|
||||
static void generate_candidates(uint8_t sum_a0_idx, uint8_t sum_a8_idx) {
|
||||
|
||||
init_statelist_cache();
|
||||
init_book_of_work();
|
||||
|
||||
// create mutexes for accessing the statelist cache and our "book of work"
|
||||
pthread_mutex_init(&statelist_cache_mutex, NULL);
|
||||
pthread_mutex_init(&book_of_work_mutex, NULL);
|
||||
|
||||
init_statelist_cache();
|
||||
init_book_of_work();
|
||||
|
||||
// create and run worker threads
|
||||
pthread_t thread_id[NUM_REDUCTION_WORKING_THREADS];
|
||||
|
|
Loading…
Reference in a new issue