From 56d863170937d81132de81d859a9ffd3f552200b Mon Sep 17 00:00:00 2001 From: George Bosilca Date: Wed, 3 Nov 2004 16:52:49 +0000 Subject: [PATCH] Correctly initialize the mutex using the init function not the unlock one. This commit was SVN r3493. --- src/threads/mutex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/threads/mutex.c b/src/threads/mutex.c index 53a8e26218..27f4065c84 100644 --- a/src/threads/mutex.c +++ b/src/threads/mutex.c @@ -33,7 +33,7 @@ static void ompi_mutex_construct(ompi_mutex_t *m) pthread_mutex_init(&m->m_lock_pthread, 0); #endif #if OMPI_HAVE_ATOMIC - ompi_atomic_unlock(&m->m_lock_atomic); + ompi_atomic_init( &m->m_lock_atomic, OMPI_ATOMIC_UNLOCKED ); #endif }