ATATimerEventSource

Inherits from
IOTimerEventSource
Availability
Available in OS X v10.0 and later.
Declared in
ATATimerEventSource.h

Overview

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

Tasks

Miscellaneous

Instance Methods

ataTimerEventSource

allocate an instance of this type.

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

cancelTimeout

overrides in order to set/clear the timed out flag

virtual void cancelTimeout();

disable

overrides in order to set/clear the timed out flag

virtual void disable();

enable

overrides in order to set/clear the timed out flag

virtual void enable();

hasTimedOut

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

virtual bool hasTimedOut( void );

init

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

myTimeout

my timeout function which sets the timedOut flag atomically.

static void myTimeout( void *self);

setTimeoutFunc

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

virtual void setTimeoutFunc();

wakeAtTime

overrides in order to set/clear the timed out flag

virtual IOReturn wakeAtTime( UnsignedWide abstime);

ExpansionData

struct ExpansionData {
};
Discussion

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

Instance Variables

reserved

ExpansionData *reserved;

Reserved for future use. (Internal use only)