Fork us on GitHub Follow us on Facebook Follow us on Twitter

Opened 10 years ago

Closed 7 years ago

Last modified 7 years ago

#181 closed enhancement (fixed)

Need a way to wait for a reply "asynchronously"

Reported by: Jakub Jermář Owned by:
Priority: major Milestone: 0.5.0
Component: helenos/lib/c Version: mainline
Keywords: Cc:
Blocker for: Depends on:
See also:

Description

In the error paths such as the one in async_data_write_forward_fast() when we succeed to send msg, but fail to forward callid, it may be desirable to be able to wait for the reply asynchronously. In the context of the above example, asynchronous waiting for the reply would basically mean marking the message with a special flag telling the async framework to discard the message as soon as the reply arrives.

Without this feature, even the error paths need to wait for the reply synchronously (or else the message will leak), which can prevent forward progress of the task at hand until the one which owes the reply is forcibly killed (eg. because it is still waiting for some other message such as callid from the above example).

Change History (5)

comment:1 Changed 9 years ago by Jakub Jermář

Milestone: 0.5.00.5.1

comment:2 Changed 8 years ago by Jakub Jermář

Type: defectenhancement

comment:3 Changed 8 years ago by Jakub Jermář

Milestone: 0.5.00.5.1

comment:4 Changed 7 years ago by Jakub Jermář

Resolution: fixed
Status: newclosed

mainline,1463 introduced async_forget() and mainline,1464 used it in async_data_read_forward_fast() and async_data_write_forward_fast().

comment:5 Changed 7 years ago by Jakub Jermář

Milestone: 0.5.10.5.0
Note: See TracTickets for help on using tickets.