diff options
| author | Dave Walker <email@daviey.com> | 2025-10-05 15:24:49 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-05 16:24:49 +0200 |
| commit | cfac27251af5df4352f747c4539ea9f65450f05a (patch) | |
| tree | 3df05fe2f8616558ad4155df4cb91d74bb38f995 /src/render/Texture.cpp | |
| parent | 76d998743ac10e712238c1016db4d8e8d16f1049 (diff) | |
debug: fix data race in Debug::log() (#11931)
* debug: fix data race in Debug::log()
The templated Debug::log() had mutex protection but the non-template
overload it calls didn't, causing crashes when plugins called log from
background threads (like hypr-dynamic-cursors loading cursor themes).
Fixed by moving the mutex lock from the template version into the
non-template version, so all writes to shared state are protected.
Fixes: hyprwm/Hyprland#11929
Fixes: VirtCode/hypr-dynamic-cursors#99
* debug: apply clang-format to Log.cpp
Fix formatting to satisfy CI clang-format check.
---------
Co-authored-by: Dave Walker <dave@daviey.com>
Diffstat (limited to 'src/render/Texture.cpp')
0 files changed, 0 insertions, 0 deletions
