Opened 14 years ago

Closed 12 years ago

Last modified 12 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:


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 by Jakub Jermář, 13 years ago


comment:2 by Jakub Jermář, 13 years ago

Type: defectenhancement

comment:3 by Jakub Jermář, 12 years ago


comment:4 by Jakub Jermář, 12 years ago

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 by Jakub Jermář, 12 years ago

Note: See TracTickets for help on using tickets.