Small optimizations in order to force the compiler to inline some critical functions.
This commit was SVN r14317.
Этот коммит содержится в:
родитель
fd4602fece
Коммит
633ee3c2ce
@ -488,6 +488,7 @@ static inline opal_object_t *opal_obj_new(opal_class_t * cls)
|
|||||||
* @param inc Increment by which to update reference count
|
* @param inc Increment by which to update reference count
|
||||||
* @return New value of the reference count
|
* @return New value of the reference count
|
||||||
*/
|
*/
|
||||||
|
static inline int opal_obj_update(opal_object_t *object, int inc) __opal_attribute_always_inline__;
|
||||||
static inline int opal_obj_update(opal_object_t *object, int inc)
|
static inline int opal_obj_update(opal_object_t *object, int inc)
|
||||||
{
|
{
|
||||||
#if OMPI_HAVE_THREAD_SUPPORT
|
#if OMPI_HAVE_THREAD_SUPPORT
|
||||||
|
@ -132,11 +132,7 @@ static inline void opal_mutex_atomic_unlock(opal_mutex_t *mutex);
|
|||||||
* possibility that we may have multiple threads, true will be
|
* possibility that we may have multiple threads, true will be
|
||||||
* returned.
|
* returned.
|
||||||
*/
|
*/
|
||||||
static inline bool opal_using_threads(void)
|
#define opal_using_threads() opal_uses_threads
|
||||||
{
|
|
||||||
return opal_uses_threads;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set whether the process is using multiple threads or not.
|
* Set whether the process is using multiple threads or not.
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user