Add thread protection -- must only construct the alock when we have
threading support. This commit was SVN r10138.
Этот коммит содержится в:
родитель
d2c7bcfbe1
Коммит
3e86381533
@ -479,7 +479,9 @@ int ompi_attr_init(void)
|
||||
}
|
||||
}
|
||||
|
||||
#if OMPI_HAVE_THREAD_SUPPORT
|
||||
OBJ_CONSTRUCT(&alock, opal_mutex_t);
|
||||
#endif
|
||||
|
||||
if (OMPI_SUCCESS != (ret = opal_hash_table_init(keyval_hash,
|
||||
ATTR_TABLE_SIZE))) {
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user