[PATCH vkd3d 1/3] vkd3d: Fix pthread_setname_np(3) call on Mac OS.

Chip Davis cdavis at codeweavers.com
Thu Aug 2 11:53:52 CDT 2018

That function exists on Mac, but it only takes a single argument, the
thread's new name. That's OK for our purposes, since we were calling it
on pthread_self anyhow.

Signed-off-by: Chip Davis <cdavis at codeweavers.com>
 libs/vkd3d/command.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libs/vkd3d/command.c b/libs/vkd3d/command.c
index 4db9967..353f42c 100644
--- a/libs/vkd3d/command.c
+++ b/libs/vkd3d/command.c
@@ -200,7 +200,11 @@ static void *vkd3d_fence_worker_main(void *arg)
     int rc;
+#ifdef __APPLE__
+    pthread_setname_np("vkd3d_worker");
     pthread_setname_np(pthread_self(), "vkd3d_worker");
     for (;;)

More information about the wine-devel mailing list