1
1

remove unneeded and never-initialized lock. The orte_ns.assign_tag function does all the locking we need for us.

This commit was SVN r16299.
Этот коммит содержится в:
Tim Prins 2007-10-02 14:22:29 +00:00
родитель 60af46d541
Коммит 34966edaf1

@ -32,8 +32,6 @@
#include "orte/mca/gpr/gpr.h"
#include "orte/mca/rml/rml_types.h"
static opal_mutex_t ompi_port_lock;
#define OMPI_COMM_PORT_KEY "ompi-port-name"
@ -56,12 +54,9 @@ int ompi_open_port(char *port_name)
return rc;
}
OPAL_THREAD_LOCK(&ompi_port_lock);
if (ORTE_SUCCESS != (rc = orte_ns.assign_rml_tag(&lport_id, NULL))) {
OPAL_THREAD_UNLOCK(&ompi_port_lock);
return rc;
}
OPAL_THREAD_UNLOCK(&ompi_port_lock);
sprintf (port_name, "%s:%d", name, lport_id);
free ( myproc );