Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Regarding IOTimerEventSource Behavior



Lance --

PROTOTYPE STYLE #1
MY_CLASS_NAME::timeoutOccurred(OSObject *owner, IOTimerEventSource *sender)
{
...
}


PROTOTYPE STYLE #2
MY_CLASS_NAME::timeoutOccurred(IOTimerEventSource *sender)
{
...
}


It's just as important to note how you have declared these methods in the header file. If you use style #1, you should declare the method as being static (and therefore having C linkage). If style #2, you should be using OSMemberFunctionCast() to get the correct pointer-to-member function syntactic sugar...

HTH,

-- Chris


------------------

6 Infinite Loop

M/S 306-2MS

Cupertino CA 95014

phone: (408) 974-4033

fax:   (408) 862-7577

email: email@hidden


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-drivers mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/darwin-drivers/email@hidden

This email sent to email@hidden

References: 
 >Regarding IOTimerEventSource Behavior (From: Lance Drake <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.