Re: thread_policy_set() in 10.9
Re: thread_policy_set() in 10.9
- Subject: Re: thread_policy_set() in 10.9
- From: Shantonu Sen <email@hidden>
- Date: Mon, 03 Nov 2014 08:45:12 -0800
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 <email@hidden> 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/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
_______________________________________________
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