Skip to content
Snippets Groups Projects

[*] fixed race conditions while working with threshold

Merged Aleksei Voronin requested to merge bugs-3874-clean into master
1 unresolved thread

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
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

  • Please register or sign in to reply
    Loading