Mailing Lists: Apple Mailing Lists

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

Correct API to implement a timer in a real-time thread



Hi,

We need to setup a 1 millisecond periodic timer used in a real-time (time constraint) thread in a pure C console program. We first tried to use the carbon Timer manager API (with NewTimerUPP and a timeManagerTask ...) but without being able to access the thread that call the timer task in order to setup its scheduling property to be "time constraint". 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?

Thanks

Stephane Letz


_______________________________________________ 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.