fix a couple of double-lock issues in the iof code that have crept in recently.
This should go to the v1.0 branch. This commit was SVN r8171.
Этот коммит содержится в:
родитель
028d1d179a
Коммит
f464bbbcc0
@ -129,6 +129,7 @@ static void orte_iof_base_endpoint_read_handler(int fd, short flags, void *cbdat
|
|||||||
|
|
||||||
/* peer has closed the connection */
|
/* peer has closed the connection */
|
||||||
orte_iof_base_endpoint_closed(endpoint);
|
orte_iof_base_endpoint_closed(endpoint);
|
||||||
|
OPAL_THREAD_UNLOCK(&orte_iof_base.iof_lock);
|
||||||
rc = 0;
|
rc = 0;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -99,8 +99,9 @@ int orte_iof_svc_sub_create(
|
|||||||
sub->dst_mask = dst_mask;
|
sub->dst_mask = dst_mask;
|
||||||
sub->dst_tag = dst_tag;
|
sub->dst_tag = dst_tag;
|
||||||
sub->sub_endpoint = orte_iof_base_endpoint_match(&sub->dst_name, sub->dst_mask, sub->dst_tag);
|
sub->sub_endpoint = orte_iof_base_endpoint_match(&sub->dst_name, sub->dst_mask, sub->dst_tag);
|
||||||
|
#if 0
|
||||||
OPAL_THREAD_LOCK(&mca_iof_svc_component.svc_lock);
|
OPAL_THREAD_LOCK(&mca_iof_svc_component.svc_lock);
|
||||||
|
#endif
|
||||||
/* search through published endpoints for a match */
|
/* search through published endpoints for a match */
|
||||||
for(item = opal_list_get_first(&mca_iof_svc_component.svc_published);
|
for(item = opal_list_get_first(&mca_iof_svc_component.svc_published);
|
||||||
item != opal_list_get_end(&mca_iof_svc_component.svc_published);
|
item != opal_list_get_end(&mca_iof_svc_component.svc_published);
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user