Commit 46568410 authored by Antonio J. Pena's avatar Antonio J. Pena
Browse files

Destroy the handle mutex on finalize

It was created but never destroyed.
parent f08d09bc
......@@ -250,6 +250,8 @@ int MPIR_Thread_CS_Finalize( void )
/* There is a single, global lock, held for the duration of an MPI call */
MPID_Thread_mutex_destroy(&MPIR_ThreadInfo.global_mutex, &err);
MPIU_Assert(err == 0);
MPID_Thread_mutex_destroy(&MPIR_ThreadInfo.handle_mutex, &err);
MPIU_Assert(err == 0);
#elif MPIU_THREAD_GRANULARITY == MPIU_THREAD_GRANULARITY_PER_OBJECT
/* MPIU_THREAD_GRANULARITY_PER_OBJECT: There are multiple locks,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment