1
1

Add the OPAL_MUTEX_TRYLOCK macro.

This commit was SVN r8789.
Этот коммит содержится в:
George Bosilca 2006-01-23 18:35:40 +00:00
родитель 2188444229
Коммит f4f8abe3bd

Просмотреть файл

@ -186,6 +186,12 @@ static inline bool opal_set_using_threads(bool have)
#define OPAL_THREAD_LOCK(mutex)
#endif
#if OMPI_HAVE_THREAD_SUPPORT
#define OPAL_THREAD_TRYLOCK(mutex) (opal_using_threads() ? opal_mutex_trylock(mutex) : 1)
#else
#define OPAL_THREAD_TRYLOCK(mutex) 1
#endif
/**
* Unlock a mutex if opal_using_threads() says that multiple threads