DequeueWithCoalesce
Removes the next queue entry, but doesn’t automatically send notifications.
Declaration
kern_return_t DequeueWithCoalesce(bool *sendDataServiced, IODataQueueClientDequeueEntryBlock callback);Parameters
- sendDataServiced:
A Boolean value that indicates that this method would have sent a notification. Initialize the value to
false, and then make one or more calls to this method. If the value istrueafter all of those calls, call the Senddataserviced method yourself to deliver the notification. - callback:
The callback that you use to process the dequeued data.
Return Value
kIOReturnSuccess on success, kIOReturnUnderrun if the queue is empty, or kIOReturnError if the queue is corrupt. See Error Codes.