1
1

Avoid a deadlock. The comment explain how this might happen.

This commit was SVN r17994.
Этот коммит содержится в:
George Bosilca 2008-03-27 18:37:11 +00:00
родитель be4b153f0d
Коммит 303941f642

Просмотреть файл

@ -398,8 +398,12 @@ static inline int ompi_request_complete(ompi_request_t* request)
} }
ompi_request_completed++; ompi_request_completed++;
request->req_complete = true; request->req_complete = true;
if(ompi_request_waiting) if(ompi_request_waiting) {
opal_condition_signal(&ompi_request_cond); /* 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; return OMPI_SUCCESS;
} }