From fb22b69df3de1bb471d2256e59c5c9849c0fe078 Mon Sep 17 00:00:00 2001 From: Derek Foreman Date: Tue, 13 Feb 2024 10:04:52 -0600 Subject: [PATCH] vulkan/wsi/wayland: Remove confusing comment We do own the lock if there's a timeout, and the code is written with that in mind - but the comment seems to imply otherwise. Drop it. Signed-off-by: Derek Foreman Part-of: --- src/vulkan/wsi/wsi_common_wayland.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/vulkan/wsi/wsi_common_wayland.c b/src/vulkan/wsi/wsi_common_wayland.c index 861be6c94c6..b9298d4903b 100644 --- a/src/vulkan/wsi/wsi_common_wayland.c +++ b/src/vulkan/wsi/wsi_common_wayland.c @@ -1738,7 +1738,6 @@ wsi_wl_swapchain_wait_for_present(struct wsi_swapchain *wsi_chain, /* Someone else is dispatching events; wait for them to update the chain * status and wake us up. */ while (chain->present_ids.dispatch_in_progress) { - /* We only own the lock when the wait succeeds. */ err = pthread_cond_timedwait(&chain->present_ids.list_advanced, &chain->present_ids.lock, &end_time);