1
1

Add thread protection -- must only construct the alock when we have

threading support.

This commit was SVN r10138.
Этот коммит содержится в:
Jeff Squyres 2006-05-31 13:48:21 +00:00
родитель 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))) {