Avoid a deadlock. The comment explain how this might happen.
This commit was SVN r17994.
Этот коммит содержится в:
родитель
be4b153f0d
Коммит
303941f642
@ -398,8 +398,12 @@ static inline int ompi_request_complete(ompi_request_t* request)
|
||||
}
|
||||
ompi_request_completed++;
|
||||
request->req_complete = true;
|
||||
if(ompi_request_waiting)
|
||||
opal_condition_signal(&ompi_request_cond);
|
||||
if(ompi_request_waiting) {
|
||||
/* Broadcast the condition, otherwise if there is already a thread
|
||||
* waiting on another request it can use all signals.
|
||||
*/
|
||||
opal_condition_broadcast(&ompi_request_cond);
|
||||
}
|
||||
return OMPI_SUCCESS;
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user