What exactly is the prototype for timeoutOccurred?
This is the code fragment from the timer event source callout
(*doit)(me->owner, me);
doit is a pointer to a function
me is the pointer to the IOTimerEventSource
me->owner is your 'this' pointer.
Godfrey
On 05/25/2005, at 22:56 , Lance Drake wrote:
Many thanks to gvdl for the info regarding calling conventions. At
this point the question has shifted to "How is it that a different
value comes in as 'sender' every time the IOTimerEventSource fires?
For example - on three occasions a timer was set and then the
timeout occurred:
The WorkLoop was not changed, the same IOTimerEventSource was in
play, the only thing that happened was to call "mTimerSource-
>setTimeoutMS(kTIMEOUT);"
So how is it that the 'sender' keeps coming back as a different value?