trunk/src/lib/portmidi/ptmacosx_mach.c
| r20252 | r20253 | |
| 47 | 47 | (thread_policy_t)&extendedPolicy, |
| 48 | 48 | THREAD_EXTENDED_POLICY_COUNT); |
| 49 | 49 | if (error != KERN_SUCCESS) { |
| 50 | | mach_error("Couldn't set thread timeshare policy", error); |
| 50 | mach_error((char *)"Couldn't set thread timeshare policy", error); |
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | precedencePolicy.importance = THREAD_IMPORTANCE; |
| r20252 | r20253 | |
| 55 | 55 | (thread_policy_t)&precedencePolicy, |
| 56 | 56 | THREAD_PRECEDENCE_POLICY_COUNT); |
| 57 | 57 | if (error != KERN_SUCCESS) { |
| 58 | | mach_error("Couldn't set thread precedence policy", error); |
| 58 | mach_error((char *)"Couldn't set thread precedence policy", error); |
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | |