Giovanni Mascellani : vkd3d: Unlock fence worker mutex before exiting.

Alexandre Julliard julliard at winehq.org
Mon Aug 8 12:17:05 CDT 2022


Module: vkd3d
Branch: master
Commit: 5749ae4700afde9ae316e91309796db86a7043a0
URL:    https://gitlab.winehq.org/wine/vkd3d/-/commit/5749ae4700afde9ae316e91309796db86a7043a0

Author: Giovanni Mascellani <gmascellani at codeweavers.com>
Date:   Thu Aug  4 13:51:28 2022 +0200

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.

---

 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;




More information about the wine-cvs mailing list