1
1

odls/base: fix orte_odls_base_harvest_threads()

Do not try to finalize odls progress threads if they have not been started yet

Signed-off-by: Gilles Gouaillardet <gilles@rist.or.jp>
Этот коммит содержится в:
Gilles Gouaillardet 2017-12-04 15:12:02 +09:00
родитель 3496897961
Коммит 4a481f66e6

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

@ -122,8 +122,10 @@ void orte_odls_base_harvest_threads(void)
ORTE_ACQUIRE_THREAD(&orte_odls_globals.lock);
if (0 < orte_odls_globals.num_threads) {
/* stop the progress threads */
for (i=0; NULL != orte_odls_globals.ev_threads[i]; i++) {
opal_progress_thread_finalize(orte_odls_globals.ev_threads[i]);
if (NULL != orte_odls_globals.ev_threads) {
for (i=0; NULL != orte_odls_globals.ev_threads[i]; i++) {
opal_progress_thread_finalize(orte_odls_globals.ev_threads[i]);
}
}
free(orte_odls_globals.ev_bases);
orte_odls_globals.ev_bases = (opal_event_base_t**)malloc(sizeof(opal_event_base_t*));