mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Unlock fence worker mutex before exiting.
Pthread mandates that a mutex must be unlocked before being destroyed. In pratice I doubt this make a difference on any platform (certainly it doesn't on Linux), but let's comply to standards.
This commit is contained in:
parent
aae4e31ba8
commit
5749ae4700
Notes:
Alexandre Julliard
2022-10-18 00:13:00 +02:00
Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/3
@ -369,7 +369,10 @@ static void *vkd3d_fence_worker_main(void *arg)
|
||||
}
|
||||
|
||||
if (worker->should_exit)
|
||||
{
|
||||
vkd3d_mutex_unlock(&worker->mutex);
|
||||
break;
|
||||
}
|
||||
|
||||
old_fences_size = cur_fences_size;
|
||||
old_fences = cur_fences;
|
||||
|
Loading…
x
Reference in New Issue
Block a user