pmix_native: update to the new opal_progress_thread API
Этот коммит содержится в:
родитель
99fa054507
Коммит
d7c25f683e
@ -7,6 +7,7 @@
|
|||||||
* All rights reserved.
|
* All rights reserved.
|
||||||
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
|
||||||
* reserved.
|
* reserved.
|
||||||
|
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
|
||||||
* $COPYRIGHT$
|
* $COPYRIGHT$
|
||||||
*
|
*
|
||||||
* Additional copyrights may follow
|
* Additional copyrights may follow
|
||||||
@ -189,7 +190,8 @@ static int native_init(void)
|
|||||||
opal_argv_free(uri);
|
opal_argv_free(uri);
|
||||||
|
|
||||||
/* create an event base and progress thread for us */
|
/* create an event base and progress thread for us */
|
||||||
if (NULL == (mca_pmix_native_component.evbase = opal_start_progress_thread("opal_async", true))) {
|
if (NULL == (mca_pmix_native_component.evbase =
|
||||||
|
opal_progress_thread_init(NULL))) {
|
||||||
return OPAL_ERROR;
|
return OPAL_ERROR;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -251,7 +253,7 @@ static int native_fini(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (NULL != mca_pmix_native_component.evbase) {
|
if (NULL != mca_pmix_native_component.evbase) {
|
||||||
opal_stop_progress_thread("opal_async", true);
|
opal_progress_thread_finalize(NULL);
|
||||||
mca_pmix_native_component.evbase = NULL;
|
mca_pmix_native_component.evbase = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user