Skip to content

Commit 94027c4

Browse files
cchambreaukingshuk00
authored andcommitted
pr feedback - added locking for setting dropped event handler
Signed-off-by: Chris Chambreau <chambreau1@llnl.gov>
1 parent 9b42cd4 commit 94027c4

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ompi/mpi/tool/event_set_dropped_handler.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@ int MPI_T_event_set_dropped_handler (MPI_T_event_registration handle, MPI_T_even
3636
return MPI_T_ERR_INVALID_HANDLE;
3737
}
3838

39+
ompi_mpit_lock ();
40+
3941
mca_base_event_registration_set_dropped_handler (handle, (mca_base_event_dropped_cb_fn_t) dropped_cb_function);
4042

43+
ompi_mpit_unlock ();
44+
4145
return MPI_SUCCESS;
4246
}

0 commit comments

Comments
 (0)