1
1

- Fix a deadlock problem for threaded builds. We have to release the lock

before we wait for the callback, because the callback will try to lock
  the lock again. (show up in debug+threaded build)

This commit was SVN r14731.
Этот коммит содержится в:
Sven Stork 2007-05-23 16:11:50 +00:00
родитель fc932f1fb4
Коммит ed72cbcaec

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

@ -1414,7 +1414,9 @@ DOFORK:
child = (orte_odls_child_t*)item;
if (ORTE_PROC_STATE_LAUNCHED == child->state) {
OPAL_THREAD_UNLOCK(&orte_odls_default.mutex);
orte_wait_cb(child->pid, odls_default_wait_local_proc, NULL);
OPAL_THREAD_LOCK(&orte_odls_default.mutex);
child->state = ORTE_PROC_STATE_RUNNING;
}
}