SetHandler
Sets the handler block to run when the timer fires.
Declaration
virtual kern_return_t SetHandler(OSAction *action);Parameters
- action:
The Osaction object that contains your custom callback method. The dispatch source object retains your action object until you call this method again or cancel the dispatch source.
Return Value
kIOReturnSuccess on success, or another value if an error occurs. See Error Codes.