File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,8 @@ OBJ_CLASS_DECLARATION(ompi_osc_pt2pt_request_t);
4040 do { \
4141 opal_free_list_item_t *item; \
4242 do { \
43- item = opal_free_list_get (&mca_osc_pt2pt_component.requests); \
43+ OPAL_THREAD_SCOPED_LOCK(&mca_osc_pt2pt_component.lock, \
44+ item = opal_free_list_get (&mca_osc_pt2pt_component.requests)); \
4445 if (NULL == item) { \
4546 opal_progress(); \
4647 } \
@@ -58,8 +59,9 @@ OBJ_CLASS_DECLARATION(ompi_osc_pt2pt_request_t);
5859 do { \
5960 OMPI_REQUEST_FINI(&(req)->super); \
6061 (req)->outstanding_requests = 0; \
61- opal_free_list_return (&mca_osc_pt2pt_component.requests, \
62- (opal_free_list_item_t *) (req)); \
62+ OPAL_THREAD_SCOPED_LOCK(&mca_osc_pt2pt_component.lock, \
63+ opal_free_list_return (&mca_osc_pt2pt_component.requests, \
64+ (opal_free_list_item_t *) (req))); \
6365 } while (0)
6466
6567static inline void ompi_osc_pt2pt_request_complete (ompi_osc_pt2pt_request_t * request , int mpi_error )
You can’t perform that action at this time.
0 commit comments