Mac Developer Library

Developer

ATATimerEventSource Class Reference

Options
Deployment Target:

On This Page
Language:

ATATimerEventSource

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

Inheritance


Not Applicable

Conforms To


Not Applicable

Import Statement


Not Applicable @import Kernel;

Availability


Available in OS X v10.0 and later.
  • allocate an instance of this type.

    Declaration

    C++

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

    Import Statement

  • overrides in order to set/clear the timed out flag

    Declaration

    C++

    virtual void cancelTimeout();

    Import Statement

  • overrides in order to set/clear the timed out flag

    Declaration

    C++

    virtual void disable();

    Import Statement

  • overrides in order to set/clear the timed out flag

    Declaration

    C++

    virtual void enable();

    Import Statement

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

    Declaration

    C++

    virtual bool hasTimedOut( void );

    Import Statement

  • Declaration

    C++

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

    Import Statement

  • my timeout function which sets the timedOut flag atomically.

    Declaration

    C++

    static void myTimeout( void *self);

    Import Statement

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

    Declaration

    C++

    virtual void setTimeoutFunc();

    Import Statement

  • overrides in order to set/clear the timed out flag

    Declaration

    C++

    virtual IOReturn wakeAtTime( UnsignedWide abstime);

    Import Statement

Data Types

  • Declaration

    C++

    struct ExpansionData { };

    Discussion

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

Instance Variables

  • Reserved for future use. (Internal use only)

    Declaration

    C++

    ExpansionData *reserved;