rt_receive / rt_reply
After an rt_receive, is it possible to defer the rt_reply to a later time and in the meantime to do other rt_receive ? In other words, is the following sequence right ?
rt_receive
... something received from Task Art_receive
... something received from Task Brt_receive
... something received from Task C
reply to Task A
reply to Task C
.
.
.. and so on .
Regards
Signature · 14 lines
*Ing. Nicola Pace * Technical Department * TDEMACNO Spa (VICENZA) * <http://www.tdemacno.it> tel: 0444 343555 fax: 0444 343509 mail: [email protected] Skype: * Riservatezza / Confidentiality*/ In ottemperanza al D.L. n. 196 del 30/6/2003 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate ed esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Vogliate tener presente che qualsiasi uso, riproduzione o divulgazione di questo messaggio e' vietata. Nel caso in cui aveste ricevuto questa mail/fax per errore, vogliate cortesemente avvertire il mittente e distruggere il presente messaggio. Accordingly to italian law D.L. 196/2003 concerning privacy, if you are not the adressee (or responsible for delivery of the message to such person) you are hereby notified that any disclosure, reproduction, distribution or other dissemination or use of this communication is strictly prohibited. If you have received this message in error, you should destroy it and please notify us by email. /
Quoted 14 lines · Nicola Pace
After an
rt_receive, is it possible to defer thert_replyto a later time and in the meantime to do otherrt_receive? In other words, is the following sequence right ?
rt_receive
... something received from Task Art_receive
... something received from Task Brt_receive
... something received from Task C
reply to Task A
reply to Task C
.
.
.. and so on .
Yes, provided you pass rt_task_reply() the proper flow identifier as received from rt_task_receive() for both ongoing transactions. The flowid also allows to deal with situations where the requestor vanishes away while its request is being processed by the receiver, before the latter has had a chance to reply. In the latter case, the flowid cannot match any pending requestors, and -ENXIO would be returned.
Signature · 1 line
Philippe.