Fix potential hang on swapchain inheritance
authorBen Davis <ben.davis@arm.com>
Thu, 27 May 2021 13:57:53 +0000 (14:57 +0100)
committerRosen Zhelev <rosen.zhelev@arm.com>
Tue, 17 Aug 2021 09:15:21 +0000 (09:15 +0000)
commitfeb2445f2abb712c287016ddae7acd439c9f4b30
treeaf9960a85c73c280d117a20b9182404635cd4ed2
parentbcd934f2aa3167e3e0c0033281e6aa60e105231c
Fix potential hang on swapchain inheritance

Introduce a mutex to control access to a swapchain's image statuses,
also only wait for swapchain images marked as "PENDING"

Change-Id: I7bd530ea50eb44cb98ed4f674167d14de4a30d53
Signed-off-by: Ben Davis <ben.davis@arm.com>
wsi/headless/swapchain.cpp
wsi/swapchain_base.cpp
wsi/swapchain_base.hpp
wsi/wayland/swapchain.cpp