Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
PolyORB-HI-C
Commits
414020f6
Commit
414020f6
authored
May 15, 2019
by
yoogx
Browse files
* Minor reformatting
parent
ede84b0d
Changes
1
Hide whitespace changes
Inline
Side-by-side
examples/aadlv2/rpc/rpc.c
View file @
414020f6
...
...
@@ -8,7 +8,6 @@
#include
<po_hi_transport.h>
#include
<po_hi_gqueue.h>
/******************************************************************************/
/* In the case of the client-side of the RPC: the corresponding AADL
* subprogram is *NOT* connected to AADL thread ports. We interact
...
...
@@ -34,18 +33,17 @@ void rpc_client (__po_hi_task_id self) {
&
req
);
__po_hi_send_output
(
self
,
REQUEST_PORT
(
client_t
,
out_parameter
));
printf
(
"Client thread: sending parameter %d
\n
"
,
i
);
printf
(
"Client thread: sending parameter %d
\n
"
,
i
);
__po_hi_gqueue_wait_for_incoming_event
(
self
,
&
return_value_port
);
__po_hi_gqueue_get_value
(
self
,
return_value_port
,
&
req
);
__po_hi_gqueue_next_value
(
self
,
return_value_port
);
printf
(
"Client received: %d
\n
"
,
req
.
PORT_VARIABLE
(
client_t
,
return_value
));
i
++
;
printf
(
"[END of RPC]
\n\n
"
);
printf
(
"Client received: %d
\n
"
,
req
.
PORT_VARIABLE
(
client_t
,
return_value
));
i
++
;
printf
(
"[END of RPC]
\n\n
"
);
}
/******************************************************************************/
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment