[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
Christopher Snowhill 2022-06-17 18:04:42 -07:00
parent e334d8a017
commit fa177fe96c
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }