/*
kern_return_t thread_policy_set(
thread_t thread,
thread_policy_flavor_t flavor,
thread_policy_t policy_info,
mach_msg_type_number_t count);
kern_return_t thread_policy_get(
thread_t thread,
thread_policy_flavor_t flavor,
thread_policy_t policy_info,
mach_msg_type_number_t *count,
boolean_t *get_default);
*/
is commented out in thread_policy.h. Why?
3) so I added these declares manually in my code, then the linker fails complaining that the thread_policy_set symbol is undefined. I did add libSystem.dylib to the Xcode project (which is where the binaries for this fn live ?)
So how does one invoke thread_policy_set is one's Xcode project, and is this the best way to reserve as many CPU cycles as possible for one's thread?
Many thanks,
Peter.