1
1

Merge pull request #1678 from rhc54/topic/mutex

Unlock the mutex prior to destructing it.
Этот коммит содержится в:
rhc54 2016-05-19 11:48:26 -07:00
родитель 50b37758d4 a35bb8453a
Коммит fcf62a8708

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

@ -1,7 +1,7 @@
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
/*
* Copyright (c) 2012 Los Alamos National Security, LLC. All rights reserved.
* Copyright (c) 2014 Intel, Inc. All rights reserved.
* Copyright (c) 2014-2016 Intel, Inc. All rights reserved.
* Copyright (c) 2015 Los Alamos National Security, LLC. All rights
* reserved.
*
@ -83,6 +83,7 @@ static int rte_orte_close(void)
{
opal_mutex_lock(&mca_rte_orte_component.lock);
OPAL_LIST_DESTRUCT(&mca_rte_orte_component.modx_reqs);
opal_mutex_unlock(&mca_rte_orte_component.lock);
OBJ_DESTRUCT(&mca_rte_orte_component.lock);
return OMPI_SUCCESS;