Asynchronous Completion Token - Ingeniørhøjskolen i Århus
Asynchronous Completion Token - Ingeniørhøjskolen i Århus
Asynchronous Completion Token - Ingeniørhøjskolen i Århus
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
6. Determine the initiator demultiplexing<br />
strategy<br />
1. Queued completion events<br />
– ACTs is placed in a completion event queue by a<br />
service or by a local service proxy<br />
– An initiator removes the ACT from a completion<br />
event queue<br />
– As shown in the Proactor pattern description (see<br />
next slide)<br />
2. Callbacks<br />
– An initiator passes a callback function/object to the<br />
service<br />
– The ACTs can be returned as a parameter to the<br />
callback object (can often be a Singleton)<br />
© <strong>Ingeniørhøjskolen</strong> i <strong>Århus</strong><br />
Slide 11