aboutsummaryrefslogtreecommitdiff
path: root/hwc2_device/DrmHwcTwo.h
diff options
context:
space:
mode:
authorRoman Stratiienko <r.stratiienko@gmail.com>2022-12-28 20:47:29 +0200
committerRoman Stratiienko <r.stratiienko@gmail.com>2023-01-04 16:30:40 +0200
commit9e2a2cd3132eae959293e94d32f2ca85653a788e (patch)
treef0e006ae8d7f4f7111bb1742e480fd04d3dfce6d /hwc2_device/DrmHwcTwo.h
parentf818d4c92c407cb6460c89ab06eceeed4f5aa468 (diff)
downloaddrm_hwcomposer-9e2a2cd3132eae959293e94d32f2ca85653a788e.tar.gz
drm_hwcomposer: Make main mutex recursive
It allows to remove redundant unlock/lock pair from the code, and should make it a little bit more race-proof. Signed-off-by: Roman Stratiienko <r.stratiienko@gmail.com>
Diffstat (limited to 'hwc2_device/DrmHwcTwo.h')
-rw-r--r--hwc2_device/DrmHwcTwo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hwc2_device/DrmHwcTwo.h b/hwc2_device/DrmHwcTwo.h
index 7a65853..81c5155 100644
--- a/hwc2_device/DrmHwcTwo.h
+++ b/hwc2_device/DrmHwcTwo.h
@@ -71,7 +71,7 @@ class DrmHwcTwo : public PipelineToFrontendBindingInterface {
int64_t timestamp) const;
private:
- void SendHotplugEventToClient(hwc2_display_t displayid, bool connected);
+ void SendHotplugEventToClient(hwc2_display_t displayid, bool connected) const;
ResourceManager resource_manager_;
std::map<hwc2_display_t, std::unique_ptr<HwcDisplay>> displays_;