Commit 77b4cec8 authored by julien.delange's avatar julien.delange
Browse files

fix local delivery, should be optimized by generated code




git-svn-id: https://tecsw.estec.esa.int/svn/taste/trunk/po-hi-c@556 129961e7-ef38-4bb5-a8f7-c9a525a55882
parent c7f9b1d5
......@@ -80,15 +80,25 @@ int __po_hi_transport_send_default (__po_hi_task_id id, __po_hi_port_t port)
request->port = (__po_hi_port_t) destinations[i];
__po_hi_marshall_request (request, &msg);
#if __PO_HI_NB_NODES > 1
error =__po_hi_driver_sockets_send (__po_hi_port_global_to_entity[port],
__po_hi_port_global_to_entity[destinations[i]],
&msg);
if (error != __PO_HI_SUCCESS)
if (__po_hi_transport_get_node_from_entity (__po_hi_get_entity_from_global_port (port)) ==
__po_hi_transport_get_node_from_entity (__po_hi_get_entity_from_global_port (destinations[i])))
{
__DEBUGMSG ("[deliver locally]");
__po_hi_main_deliver (request);
}
#if defined (__PO_HI_NEED_DRIVER_SOCKETS) && (__PO_HI_NB_NODES > 1)
else
{
return error;
__DEBUGMSG ("[deliver using network sockets]");
__po_hi_marshall_request (request, &msg);
error =__po_hi_driver_sockets_send (__po_hi_port_global_to_entity[port],
__po_hi_port_global_to_entity[destinations[i]],
&msg);
if (error != __PO_HI_SUCCESS)
{
return error;
}
}
#endif
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment