Lines Matching refs:timeout
53 @discussion An event source that implements a simple timer. A timeout handler is called once the timeout period expires. This timeout handler will be called by the work-loop that this event source is attached to.
55 Usually a timer event source will be used to implement a timeout. In general when a driver makes a request it will need to setup a call to keep track of when the I/O doesn't complete. This class is designed to make that somewhat easier.
83 /*! @function timeout
84 @abstract Function that routes the call from the OS' timeout mechanism into a work-loop context.
85 @discussion timeout will normally not be called nor overridden by a subclass. If the event source is enabled then close the work-loop's gate and call the action routine.
87 static void timeout(void *self);
90 @abstract Set's timeout as the function of calloutEntry.
91 @discussion IOTimerEventSource is based upon the kern/thread_call.h APIs currently. This function allocates the calloutEntry member variable by using thread_call_allocate(timeout, this). If you need to write your own subclass of IOTimerEventSource you probably should override this method to allocate an entry that points to your own timeout routine. */
116 @abstract Initializes the timer with an owner, and a handler to call when the timeout expires.