windows/dispatcher

Windows completion-port dispatcher object that multiplexes posted callbacks and overlapped completions. The object provides callback posting, blocking or polling dispatch, one wake helper, and one exported opaque completion-port handle.


dispatcher

dispatcher is one exported object that bundles callback schemas, dispatch operations, one cleanup helper, and the completion-port handle used by them.


Queue entry forms at a glance

Entry form Completion key lpOverlapped Dispatched callback User payload source
Posted callback Nonzero code pointer to one OnCallback One posted Natx payload value OnCallback The context argument passed to post
Overlapped completion 0nx Address of the embedded dispatcher.Context.overlapped field dispatcher.Context.onEvent The stored dispatcher.Context.context plus transferred bytes and completion error

Operations


Dispatch model


Initialization and cleanup


See also