We want to allow users to call opal_thread_join(**, NULL) so what we really have
to test against NULL is the void** pointer. This make this function behave like the pthread_join. This commit was SVN r20724.
Этот коммит содержится в:
родитель
05d9f0b933
Коммит
f3cd687c44
@ -87,7 +87,7 @@ int opal_thread_join(opal_thread_t *t, void **thr_return)
|
||||
return OPAL_ERROR;
|
||||
}
|
||||
|
||||
if( NULL != *thr_return ) {
|
||||
if( NULL != thr_return ) {
|
||||
*thr_return = (void *)((intptr_t)rc);
|
||||
}
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user