Skip to content

Commit

Permalink
Merge pull request #12355 from lrbison/usnic_mutex
Browse files Browse the repository at this point in the history
btl/usnic: move btl_usnic_lock initialization
  • Loading branch information
wenduwan authored Feb 23, 2024
2 parents 980eb50 + 5ff314c commit cb00772
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opal/mca/btl/usnic/btl_usnic_component.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ static int usnic_component_open(void)

/* initialize objects */
OBJ_CONSTRUCT(&mca_btl_usnic_component.usnic_procs, opal_list_t);
OBJ_CONSTRUCT(&btl_usnic_lock, opal_recursive_mutex_t);


/* Sanity check: if_include and if_exclude need to be mutually
exclusive */
Expand Down Expand Up @@ -587,8 +589,6 @@ usnic_component_init(int *num_btl_modules, bool want_progress_threads, bool want
}
}

OBJ_CONSTRUCT(&btl_usnic_lock, opal_recursive_mutex_t);

/* There are multiple dimensions to consider when requesting an
API version number from libfabric:
Expand Down

0 comments on commit cb00772

Please sign in to comment.