[Audio Threads] Make work interval name unique
Work interval names should be unique. Apparently they are deduplicated based on their names? Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
e334d8a017
commit
fa177fe96c
|
@ -216,7 +216,7 @@ BOOL SetPriorityRealtimeAudio(mach_port_t mach_thread_id) {
|
||||||
if(@available(macOS 11, *)) {
|
if(@available(macOS 11, *)) {
|
||||||
if(!wg) {
|
if(!wg) {
|
||||||
if(!workgroup) {
|
if(!workgroup) {
|
||||||
workgroup = AudioWorkIntervalCreate([[NSString stringWithFormat:@"%@ Work Interval", [self className]] UTF8String], clockId, &attr);
|
workgroup = AudioWorkIntervalCreate([[NSString stringWithFormat:@"%@ Work Interval %@", [self className], self] UTF8String], clockId, &attr);
|
||||||
isRealtimeError = !SetPriorityRealtimeAudio(pthread_mach_thread_np(pthread_self()));
|
isRealtimeError = !SetPriorityRealtimeAudio(pthread_mach_thread_np(pthread_self()));
|
||||||
isRealtime = !isRealtimeError;
|
isRealtime = !isRealtimeError;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue