HWC: Protect hwc_set from async events
Wait for hwc_set completion if already in progress before processing
the async events.
Bug: 7288769
Change-Id: Ibdd0ee82f079df566b899c94df19f6bb1031d686
Signed-off-by: Iliyan Malchev <malchev@google.com>
diff --git a/libhwcomposer/hwc_utils.h b/libhwcomposer/hwc_utils.h
index 9193540..ef2e3c8 100644
--- a/libhwcomposer/hwc_utils.h
+++ b/libhwcomposer/hwc_utils.h
@@ -212,6 +212,8 @@
//Lock to prevent set from being called while blanking
mutable Locker mBlankLock;
+ //Lock to protect set when detaching external disp
+ mutable Locker mExtSetLock;
//Vsync
struct vsync_state vstate;
};