1
1

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.
Этот коммит содержится в:
Brian Barrett 2005-11-17 01:26:00 +00:00
родитель 028d1d179a
Коммит f464bbbcc0
2 изменённых файлов: 3 добавлений и 1 удалений

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

@ -129,6 +129,7 @@ static void orte_iof_base_endpoint_read_handler(int fd, short flags, void *cbdat
/* peer has closed the connection */
orte_iof_base_endpoint_closed(endpoint);
OPAL_THREAD_UNLOCK(&orte_iof_base.iof_lock);
rc = 0;
return;
}

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

@ -99,8 +99,9 @@ int orte_iof_svc_sub_create(
sub->dst_mask = dst_mask;
sub->dst_tag = 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);
#endif
/* search through published endpoints for a match */
for(item = opal_list_get_first(&mca_iof_svc_component.svc_published);
item != opal_list_get_end(&mca_iof_svc_component.svc_published);