Only print warning message about condition variable useage if the MCA
param says we should Also, check for != 0, rather than == 1, as there are way too many double locks, but they'll get warned when we do the double lock. No need to warn again, in a meaningless way. Originally part of r15167, reverted with r15172. This commit was SVN r15173. The following SVN revision numbers were found above: r15167 --> open-mpi/ompi@faa401dc47 r15172 --> open-mpi/ompi@5f16251808
Этот коммит содержится в:
родитель
5f16251808
Коммит
249ddf8fff
@ -63,7 +63,7 @@ static inline int opal_condition_wait(opal_condition_t *c, opal_mutex_t *m)
|
||||
c->c_waiting++;
|
||||
|
||||
#if OMPI_ENABLE_DEBUG && !OMPI_HAVE_THREAD_SUPPORT
|
||||
if (1 != m->m_lock_debug) { \
|
||||
if (opal_mutex_check_locks && 0 == m->m_lock_debug) { \
|
||||
opal_output(0, "Warning -- mutex not locked in condition_wait"); \
|
||||
} \
|
||||
m->m_lock_debug--;
|
||||
@ -111,7 +111,7 @@ static inline int opal_condition_timedwait(opal_condition_t *c,
|
||||
int rc = 0;
|
||||
|
||||
#if OMPI_ENABLE_DEBUG && !OMPI_HAVE_THREAD_SUPPORT
|
||||
if (1 != m->m_lock_debug) { \
|
||||
if (opal_mutex_check_locks && 0 == m->m_lock_debug) { \
|
||||
opal_output(0, "Warning -- mutex not locked in condition_wait"); \
|
||||
} \
|
||||
m->m_lock_debug--;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user