Pthread mandates that a mutex must be unlocker 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.
-- v2: vkd3d: Unlock fence worker mutex before exiting.
From: Giovanni Mascellani gmascellani@codeweavers.com
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. --- libs/vkd3d/command.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c index e0201d5d..9ae6079c 100644 --- a/libs/vkd3d/command.c +++ b/libs/vkd3d/command.c @@ -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;
This merge request was approved by Henri Verbeet.