Generally you should use #include <mach/mach.h> The prototypes are in the mig-generated header <mach/thread_act.h>. They are commented out as reference in thread_policy.h Shantonu
On Nov 3, 2014, at 8:36 AM, Pierre-Emile Duhamel <pierre.duhamel@gmail.com> wrote:
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/Kern...
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 (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/ssen%40apple.com
This email sent to ssen@apple.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-kernel mailing list (Darwin-kernel@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/darwin-kernel/site_archiver%40lists.... This email sent to site_archiver@lists.apple.com