diff options
author | Roman Stratiienko <r.stratiienko@gmail.com> | 2022-12-28 20:47:29 +0200 |
---|---|---|
committer | Roman Stratiienko <r.stratiienko@gmail.com> | 2023-01-04 16:30:40 +0200 |
commit | 9e2a2cd3132eae959293e94d32f2ca85653a788e (patch) | |
tree | f0e006ae8d7f4f7111bb1742e480fd04d3dfce6d /hwc2_device/DrmHwcTwo.h | |
parent | f818d4c92c407cb6460c89ab06eceeed4f5aa468 (diff) | |
download | drm_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.h | 2 |
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_; |