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:
Giovanni Mascellani 2022-08-04 13:51:28 +02:00 committed by Alexandre Julliard
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

View File

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