ATATimerEventSource

Inherits from:
Declared In:

Overview

Extend the timer event source to allow checking for timer expiration from behind the workloop.



Functions

ataTimerEventSource

allocate an instance of this type.

cancelTimeout

overrides in order to set/clear the timed out flag

disable

overrides in order to set/clear the timed out flag

enable

overrides in order to set/clear the timed out flag

hasTimedOut

returns true if the timer has expired since the last enable/disable or setTimeout() or wakeAtTime() call.

init
myTimeout

my timeout function which sets the timedOut flag atomically.

setTimeoutFunc

override to install my timeout function instead of the super's.

wakeAtTime

overrides in order to set/clear the timed out flag


ataTimerEventSource


allocate an instance of this type.

public

static ATATimerEventSource * ataTimerEventSource( OSObject *owner, Action action = 0);


cancelTimeout


overrides in order to set/clear the timed out flag

public

virtual void cancelTimeout();


disable


overrides in order to set/clear the timed out flag

public

virtual void disable();


enable


overrides in order to set/clear the timed out flag

public

virtual void enable();


hasTimedOut


returns true if the timer has expired since the last enable/disable or setTimeout() or wakeAtTime() call.

public

virtual bool hasTimedOut( void );


init


public

virtual bool init( OSObject *owner, Action action = 0);


myTimeout


my timeout function which sets the timedOut flag atomically.

protected

static void myTimeout( void *self);


setTimeoutFunc


override to install my timeout function instead of the super's.

protected

virtual void setTimeoutFunc();


wakeAtTime


overrides in order to set/clear the timed out flag

public

virtual IOReturn wakeAtTime( UnsignedWide abstime);

Structs and Unions

ExpansionData

ExpansionData


protected

struct ExpansionData { };
Discussion

This structure will be used to expand the capablilties of the IOWorkLoop in the future.

Member Data

reserved

reserved


protected

ExpansionData *reserved;
Discussion

Reserved for future use. (Internal use only)

 

 

Last Updated: 2009-10-14