thread_policy_set() in 10.9
thread_policy_set() in 10.9
- Subject: thread_policy_set() in 10.9
- From: Pierre-Emile Duhamel <email@hidden>
- Date: Mon, 03 Nov 2014 11:36:15 -0500
Hello,
I am trying to use thread_policy_set() on 10.9.5 with Xcode 6.0.1 to
have a c command line tool run in real time. The program is capturing
sensor data from hardware in real time, so I need it to meet timing
limits.
I am following the documentation in
https://developer.apple.com/library/mac/documentation/Darwin/Conceptual/KernelProgramming/scheduler/scheduler.html
When I #include <mach/thread_policy.h>, the function is not found.
When I looked at usr/include/mach/thread_policy.h, the function
thread_policy_set() is commented out.
Has this been depreciated or is there a new/better way to have code
run in real time? Thank you in advance for your help.
Thanks,
Pierre
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden