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: Correct API to implement a timer in a real-time thread



We try also low-level function like mach_wait_until but had problems on Panther.

What is the recommended way (API...) to implement a timer?

Not in Darwin, but MPDelayUntil() should be fairly accurate.

(The other relevant calls being UpTime(), DurationToAbsolute() and AddAbsoluteToAbsolute() -- typing these from memory, YMMV)

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

This email sent to 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.