[Audio Threads] Clear workgroup token on exit
When leaving the workgroup, clear the token, as the join call requires the token to be uninitialized. Signed-off-by: Christopher Snowhill <kode54@gmail.com>
This commit is contained in:
parent
22a41e71d3
commit
ef2ba385f2
1 changed files with 1 additions and 0 deletions
|
@ -243,6 +243,7 @@ BOOL SetPriorityRealtimeAudio(mach_port_t mach_thread_id) {
|
||||||
if(@available(macOS 11, *)) {
|
if(@available(macOS 11, *)) {
|
||||||
if(wg && !isRealtimeError) {
|
if(wg && !isRealtimeError) {
|
||||||
os_workgroup_leave(wg, &wgToken);
|
os_workgroup_leave(wg, &wgToken);
|
||||||
|
bzero(&wgToken, sizeof(wgToken));
|
||||||
wg = nil;
|
wg = nil;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue