Add a macro to mark the MPI request as completed (MCA_PML_BASE_REQUEST_MPI_COMPLETE) and
broadcast the request condition if required. This macro should be called with the request's mutex locked. This commit was SVN r8811.
Этот коммит содержится в:
родитель
0f1c6d79e8
Коммит
58c9c82dab
@ -62,6 +62,17 @@ struct mca_pml_base_request_t {
|
||||
};
|
||||
typedef struct mca_pml_base_request_t mca_pml_base_request_t;
|
||||
|
||||
/*
|
||||
* Mark the MPI request as completed and trigger the condition if required.
|
||||
*/
|
||||
#define MCA_PML_BASE_REQUEST_MPI_COMPLETE( request ) \
|
||||
do { \
|
||||
(request)->req_complete = true; \
|
||||
ompi_request_completed++; \
|
||||
if(ompi_request_waiting) { \
|
||||
opal_condition_broadcast(&ompi_request_cond); \
|
||||
} \
|
||||
} while(0)
|
||||
|
||||
#if defined(c_plusplus) || defined(__cplusplus)
|
||||
}
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user