Contents

SetDataAvailableHandler

Sets the handler block to run when another object adds data to the queue.

Declaration

virtual kern_return_t SetDataAvailableHandler(OSAction *action);

Parameters

  • action:

    The Osaction instance specifying the callback method. The data queue retains this object until you call this method again or call Cancel. This queue executes the action’s handler method on the action’s own dispatch queue.

Return Value

kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.

See Also

Removing Work from the Queue