[*] fixed race conditions while working with threshold
1 unresolved thread
1 unresolved thread
Merge request reports
Activity
Filter activity
698 701 { 699 702 bool res = false; 700 703 // TODO Process finish treshold. For now - easiest from possible 701 pthread_rwlock_wrlock(&PVT(a_dag)->events_rwlock); 702 704 dap_chain_cs_dag_event_item_t * l_event_item = NULL, * l_event_item_tmp = NULL; 703 705 HASH_ITER(hh,PVT(a_dag)->events_treshold,l_event_item, l_event_item_tmp){ 704 706 dap_chain_cs_dag_event_t * l_event = l_event_item->event; 705 707 dap_dag_threshold_verification_res_t ret = dap_chain_cs_dag_event_verify_hashes_with_treshold (a_dag,l_event); 706 708 if ( ret == DAP_THRESHOLD_OK || ret == DAP_THRESHOLD_CONFLICTING ){ // All its hashes are in main table, move thats one too into it 707 pthread_rwlock_unlock(&PVT(a_dag)->events_rwlock); mentioned in commit 4147bef2